docker管理工具lazydocker

docker管理工具lazydockerlinux

簡介

這是一個爲了能再終端中更方便管理docker的工具git

項目地址

https://github.com/jesseduffield/lazydockergithub

安裝

首先安裝go語言golang

go安裝

下載安裝包

go下載:docker

下載地址:https://golang.google.cn/dl/bash

lazydocker下載:markdown

下載地址:wget https://github.com/jesseduffield/lazydocker/releases/download/v0.2.4/lazydocker_0.2.4_Linux_x86_64.tar.gzide

建立安裝目錄移動並解壓到安裝目錄
mkdir -p ~/support/gopath
mv go1.11.linux-amd64.tar.gz  ~/support
tar -xzvf go1.11.linux-amd64.tar.gz

添加環境變量

[ocetl@x666 ~]$ vi .bash_profile
 
#go
export GOROOT=~/support/go
export GOPATH=~/support/gopath
export PATH=${GOROOT}/bin:$PATH
export PATH=${GOPATH}/bin:$PATH
source ~/.bash_profile

查看環境變量是否生效

[ocetl@x666 ~]$ go version
go version go1.11 linux/amd64

lazydocker安裝

首先下載工具

wget https://github.com/jesseduffield/lazydocker/releases/download/v0.2.4/lazydocker_0.2.4_Linux_x86_64.tar.gz
建立安裝目錄移動並解壓到安裝目錄
mkdir -p ~/root/lazydocker
mv lazydocker_0.2.4_Linux_x86_64.tar.gz  ~/root/lazydocker 
tar
-zxvf lazydocker_0.2.4_Linux_x86_64.tar.gz

添加到/usr/local/bin/中

[ocetl@x666 ~]$ ln -s /root/lazydocker/lazydocker lazydocker
[ocetl@x666 ~]$ mv /root/lazydocker/lazydocker /usr/local/bin/

 查看

[ocetl@x666 ~]$ lazydocker
相關文章
相關標籤/搜索