首页 > docker > 正文

Docker脚本安装

标签:docker

请修改_includes/adsense_468x60.html添加广告代码。

curl -fsSL https://get.docker.com |sudo sh

安装成功后会告知用户如何使用非root权限操作Docker。

If you would like to use Docker as a non-root user, you should now consider
adding your user to the “docker” group with something like:
sudo usermod -aG docker $your_user
Remember that you will have to log out and back in for this to take effect!

将docker.socket访问权限设置为660将其所属用户组设为docker,非root用户只要加入docker用户组可无需root权限运行docker命令.


原创文章,转载请注明出处!
本文链接:https://aakosp.github.io/posts/docker-shell-install.html
上篇: 人生什么更重要?[测试]

请修改_includes/comment.html添加评论代码。