我按照官方指南在Ubuntu 18.04 x64上安装了
根据“以非root用户身份管理Docker”的说明,我尝试修改
事实上,我甚至没有一个名为
在之前的步骤中,我已经成功地运行了
docker-ce
。根据“以非root用户身份管理Docker”的说明,我尝试修改
.docker
文件夹的所有权,但出现了“没有这样的文件或目录”的错误。$ sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
chown: cannot access '/home/eric/.docker': No such file or directory
事实上,我甚至没有一个名为
.docker
的文件夹:$ ls ~/.docker
ls: cannot access '/home/eric/.docker': No such file or directory
在之前的步骤中,我已经成功地运行了
hello-world
容器:$ 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.
(amd64)
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 Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
我做错了什么?