The first step, locate the Docker.service file
The contents are as follows:
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-d $OPTIONS \
$DOCKER _storage_options \
$DOCKER _network_options \
$ADD _registry \
$BLOCK _registry \
$INSECURE _registry
limitnofile=1048576
limitnproc=1048576
Limitcore=infinity
Mountflags=slave
[Install]
Wantedby=multi-user.target
The second step, configuration options and so on parameters, such as I want to configure the log maximum length max-size=10k (note that the Docker 1.8 version only supports this configuration)
options= '--log-opt max-size=10k '
The third step, when the container is generated (Docker Deamon will be executed when the configuration is started Execstart )
Boot configuration file for Docker under CentOS