lazydocker docker 命令行ui
最后更新于:2022-04-02 03:06:26
[TOC]
![](https://github.com/jesseduffield/lazydocker/blob/master/docs/resources/demo3.gif)
## 安装
### mac
```
brew tap jesseduffield/lazydocker
brew install lazydocker
//加别名
echo "alias lzd='lazydocker'" >> ~/.zshrc
//or
echo "alias lzd='lazydocker'" >> ~/.bashrc
```
### Linux
`curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash`
### docker 安装
```
docker run -it -v \
/var/run/docker.sock:/var/run/docker.sock \
-v /yourpath:/.config/jesseduffield/lazydocker \
lazyteam/lazydocker
```
添加别名
zshrc
`echo "alias lzd='docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /yourpath/config:/.config/jesseduffield/lazydocker lazyteam/lazydocker'" >> ~/.zshrc
`
bashrc
`echo "alias lzd='docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /yourpath/config:/.config/jesseduffield/lazydocker lazyteam/lazydocker'" >> ~/.bashrc
`
## 使用
### `x` 显示某条的菜单
### `b` 显示某块的菜单(Services,Images)
### 演示
![](https://oscimg.oschina.net/oscnet/4ad1a013236976fa04761509d03d4fbeecf.jpg)
';