答案1
如果你已经使用以下命令安装了“Docker”:
sudo apt-get install docker.io
可以使用以下方式查看手册页:
man docker
即使您已经安装了Docker和这些说明可以使用以下方式查看手册页:
man docker
使用此命令,您可以看到为手册页安装的文件:
dpkg-query -L <package_name> | grep "/usr/share/man"
例如docker.io
:
apt-cache policy docker.io
docker.io:
Installed: (none)
Candidate: 1.5.0~dfsg1-1ubuntu2
Version table:
1.5.0~dfsg1-1ubuntu2 0
500 http://archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
apt-file list docker.io | grep "/usr/share/man"
docker.io: /usr/share/man/man1/docker-attach.1.gz
docker.io: /usr/share/man/man1/docker-build.1.gz
docker.io: /usr/share/man/man1/docker-commit.1.gz
docker.io: /usr/share/man/man1/docker-cp.1.gz
docker.io: /usr/share/man/man1/docker-create.1.gz
docker.io: /usr/share/man/man1/docker-diff.1.gz
docker.io: /usr/share/man/man1/docker-events.1.gz
docker.io: /usr/share/man/man1/docker-exec.1.gz
docker.io: /usr/share/man/man1/docker-export.1.gz
docker.io: /usr/share/man/man1/docker-history.1.gz
docker.io: /usr/share/man/man1/docker-images.1.gz
docker.io: /usr/share/man/man1/docker-import.1.gz
docker.io: /usr/share/man/man1/docker-info.1.gz
docker.io: /usr/share/man/man1/docker-inspect.1.gz
docker.io: /usr/share/man/man1/docker-kill.1.gz
docker.io: /usr/share/man/man1/docker-load.1.gz
docker.io: /usr/share/man/man1/docker-login.1.gz
docker.io: /usr/share/man/man1/docker-logout.1.gz
docker.io: /usr/share/man/man1/docker-logs.1.gz
docker.io: /usr/share/man/man1/docker-pause.1.gz
docker.io: /usr/share/man/man1/docker-port.1.gz
docker.io: /usr/share/man/man1/docker-ps.1.gz
docker.io: /usr/share/man/man1/docker-pull.1.gz
docker.io: /usr/share/man/man1/docker-push.1.gz
docker.io: /usr/share/man/man1/docker-restart.1.gz
docker.io: /usr/share/man/man1/docker-rm.1.gz
docker.io: /usr/share/man/man1/docker-rmi.1.gz
docker.io: /usr/share/man/man1/docker-run.1.gz
docker.io: /usr/share/man/man1/docker-save.1.gz
docker.io: /usr/share/man/man1/docker-search.1.gz
docker.io: /usr/share/man/man1/docker-start.1.gz
docker.io: /usr/share/man/man1/docker-stop.1.gz
docker.io: /usr/share/man/man1/docker-tag.1.gz
docker.io: /usr/share/man/man1/docker-top.1.gz
docker.io: /usr/share/man/man1/docker-unpause.1.gz
docker.io: /usr/share/man/man1/docker-version.1.gz
docker.io: /usr/share/man/man1/docker-wait.1.gz
docker.io: /usr/share/man/man1/docker.1.gz
docker.io: /usr/share/man/man5/Dockerfile.5.gz
答案2
ubuntu 14.04.1 似乎有一个错误
~$ apt-cache policy docker.io
docker.io:
Installed: (none)
Candidate: 1.0.1~dfsg1-0ubuntu1~ubuntu0.14.04.1
Version table:
1.0.1~dfsg1-0ubuntu1~ubuntu0.14.04.1 0
500 http://cz.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
100 /var/lib/dpkg/status
0.9.1~dfsg1-2 0
500 http://cz.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
通过帮助安装wget -qO- https://get.docker.com/ | sh
。