docker管理工具lazydocker
阿新 • • 發佈:2021-01-11
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