因为deepin的特殊
安装方式详见:
https://www.imooc.com/article/276923
大概就是网络的问题
添加docker官方仓库这一步骤报错了:
这一点先不论:
用
https://www.imooc.com/article/276629
中的办法,运行hello world试试
docker run --name hello hello-world
发现权限不够:
用了sudo
上个链接中的办法根本没办法使用sudo gpasswd -a ${USER} docker
提示我根本不存在docker用户
hf@hf-PC:~$ sudo gpasswd -a ${hf} docker
gpasswd:用户“docker”不存在
之后用了:
https://blog.csdn.net/kongxx/article/details/88703358
之中的办法
让普通用户也能使用
但是之前已经有了进程
用:
https://blog.csdn.net/iw1210/article/details/84674936
解决
试了用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/
总算是调试好了?
累死了。
PS:
话说我的docker版本:
用sudo apt-get install docker-ce得到的:
docker-ce 已经是最新版 (18.06.0ce3-0~ubuntu)。
网友评论