docker管理工具lazydocker
作者:互联网
go安装
下载安装包
go下载:
下载地址:https://golang.google.cn/dl/
lazydocker下载:
下载地址:wget https://github.com/jesseduffield/lazydocker/releases/download/v0.2.4/lazydocker_0.2.4_Linux_x86_64.tar.gz
创建安装目录移动并解压到安装目录
[root@server01 ~]# mkdir -p ~/support/gopath [root@server01 ~]# mv go1.15.6.linux-amd64.tar.gz ~/support [root@server01 ~]# cd support/ [root@server01 support]# tar xf go1.15.6.linux-amd64.tar.gz
添加环境变量
[root@server01 ~]# vi .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH #go export GOROOT=~/support/go export GOPATH=~/support/gopath export PATH=${GOROOT}/bin:$PATH export PATH=${GOPATH}/bin:$PATH
source ~/.bash_profile
查看环境变量是否生效
[root@server01 ~]# source ~/.bash_profile [root@server01 ~]# go version go version go1.15.6 linux/amd64
lazydocker安装
首先下载
[root@server01 ~]# wget https://github.com/jesseduffield/lazydocker/releases/download/v0.2.4/lazydocker_0.2.4_Linux_x86_64.tar.gz
创建安装目录移动并解压到安装目录
[root@server01 ~]# mkdir -p ~/root/lazydocker [root@server01 ~]# mv lazydocker_0.2.4_Linux_x86_64.tar.gz ~/root/lazydocker [root@server01 lazydocker]# tar xf lazydocker_0.2.4_Linux_x86_64.tar.gz ln -s ~/root/lazydocker/lazydocker lazydocker [root@server01 ~]# mv root/lazydocker/lazydocker /usr/local/bin/
查看
[root@server01 ~]# lazydocker
添加环境变量
标签:tar,lazydocker,管理工具,gz,server01,PATH,docker,root 来源: https://www.cnblogs.com/liujunjun/p/14261540.html