Learning Goals:
To view the running status of the Docker daemon
Start, stop, restart the Docker daemon
Startup options for the Docker daemon
Modify and view the startup options for the Docker daemon
1. # View Docker running status
Method One: Ps-ef | grep java
Method Two: sudo status docker
Back to: Docker start/running, Process 18479
Returns the process number that is currently started and is running while returning
2.# Start, stop, restart the Docker daemon
sudo service docker start
sudo service docker stop
sudo service docker restart
3. Boot Options for Docker daemon
docker-d [OPTIONS]
-Run related options
-Options related to server-side connections
-Options related to Remoteapi
-Options related to storage driver settings
-Options related to the warehouse connection
-Network-related options
4. Modify and view the boot options for the Docker daemon
Docker service startup is not started by command line, these options are used by the boot configuration file
Vi/etc/default/docker
#设置启动docker时的各种选项
#安装地址
#DOCKER = "/usr/local/bin/docker"
#启动选项-docker_opts
docker_opts= "-label Name=liangshengqi"
A label option is defined here and can be found in info.
sudo service docker restart
Ps-ef | grep Docker
Root 10950 1 0 21:46? 00:00:00/usr/bin/docker-d--label Name=liangshengqi
Docker Info # can also view the label option.
Docker Learning Notes (5-2) configuration and operation of the Docker daemon