美文网首页
Manage dockers visually

Manage dockers visually

作者: 凸大愚若智凸 | 来源:发表于2018-07-15 10:42 被阅读0次

You definitely don't wanna type a lot of commands to manage your docker thru terminal, especially when the docker command is not that friendly to you (just think about that you can only remove one image at a time).
Here comes a better way to manage all the dockers (of course includes containers/services/... everything) in your local machine or remote machine (you get the option when you login).
It's pretty simple, just run another docker for the dockers :)

docker run -d -p 9000:9000 \
    --restart=always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    --name prtainer-test \
    portainer/portainer

After running the docker, you can login localhost:9000 then a login web will pop up for you.

Tips:
1. Sometimes the Web way doesn't work quite well, you just get a bunch of errors when you try to delete some images or something. Just go to the command line way.
2. There're also some other options than portainer for the same purpose, you can dig them out and let me know if you get something better.

Enjoy it.

相关文章

网友评论

      本文标题:Manage dockers visually

      本文链接:https://www.haomeiwen.com/subject/vnxppftx.html