Docker散记

本篇文章主要记录docker一些使用问题心得经验等。

docker资料
Docker Docs:https://docs.docker.com/
Docker hub:https://hub.docker.com/ 
Docker cloud:https://cloud.docker.com/onboarding/ 
Docker资讯:http://www.infoq.com/cn/ 

Docker Blog https://blog.docker.com/ 

docker配置文件
/etc/sysconfig/docker
/usr/lib/systemd/system/docker.service

[jipeng@master system]$ vi docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target
Wants=docker-storage-setup.service

[Service]
Type=notify
EnvironmentFile=-/etc/sysconfig/docker
EnvironmentFile=-/etc/sysconfig/docker-storage
EnvironmentFile=-/etc/sysconfig/docker-network
Environment=GOTRACEBACK=crash
ExecStart=/usr/bin/docker daemon $OPTIONS \
          $DOCKER_STORAGE_OPTIONS \
          $DOCKER_NETWORK_OPTIONS \
          $ADD_REGISTRY \
          $BLOCK_REGISTRY \
          $INSECURE_REGISTRY
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
MountFlags=slave
TimeoutStartSec=1min
Restart=on-failure

[Install]
WantedBy=multi-user.target

docker日志文件
/var/log/message

docker的image与container存放路径
container存放在/var/lib/docker/containers
image存放在/var/lib/docker/graph​​
参考:Docker pull下来的镜像文件、创建出来的容器文件都存在本地的什么地方了?