Docker Learning Notes (5-2) configuration and operation of the Docker daemon

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.