博文

目前显示的是 九月, 2018的博文

Ubuntu下安装Docker

1.安装Docker        sudo apt-get install curl    curl -fsSL https://get.docker.com/ | sh   安装好后有如下提示:   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 guochongxin   Remember that you will have to log out and back in for this to take effect!   可根据实际需要执行上面提示中的命令,将当前用户加到docker用户组里,避免后期需要加sudo执行。   接下来执行sudo docker run hello-world命令来验证安装情况,如有下面提示则表示安装成功:   Hello from Docker.      This message shows that your installation appears to be working correctly.       To generate this message, Docker took the following steps:        1. The Docker client contacted the Docker daemon.      2. The Docker daemon pulled the "hello-world" image from the Docker Hub.      3. The Docker daemon created a new container from that image which runs the        executable that produces the output you are currently reading.      4. The Docker daemon streamed that output to the