Docker¶
快速开始¶
收藏¶
关于 Dockerfile 中 echo 的用法¶
docker 挂载数据卷¶
Warning: Stopping docker.service, but it can still be activated by: docker.socket
¶
远程访问¶
方式一¶
-
/etc/systemd/system/multi-user.target.wants/docker.service
方式二¶
-
/etc/systemd/system/multi-user.target.wants/docker.service
-
/etc/docker/daemon.json
注意项¶
访问指令只能选择一处进行配置,否则会报错:
unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file: hosts: (from flag: [fd:// unix:///var/run/docker.sock], from file: [tcp://0.0.0.0:2375])
测试¶
常用命令¶
-
删除已停止的容器
-
获取最新镜像版本号
-
自动清理空间
-
查看占用