输入当前用户的密码后,就会下载脚本并且安装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 localhost Remember that you will have to log out and back in for this to take effect! 当要以非root用户可以直接运行docker时,需要执行 sudo usermod -aG docker localhost 命令,然后重新登陆,否则会有如下报错