Docker Server Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 48: Line 48:
* [[Docker Server Log Management]]
* [[Docker Server Log Management]]
* [[Secure Docker Daemon]]
* [[Secure Docker Daemon]]
* [[Configure Docker Server to Listen on TCP|Configure Docker Server to Listen on TCP]]


=Subjects=
=Subjects=
Line 61: Line 62:
==The Local Registry==
==The Local Registry==


==/var/lib/docker/containers==
Stores images in the "container-thinpool" logical volume, statistics available with:


Each running or stopped container has a corresponding directory there.
  lvs -a


Local images can be inspected with


[[docker images]]


==/var/lib/docker/containers==


* The local docker registry:
Each running or stopped container has a corresponding directory there.
 
As root:
 
  docker images
 
* Containers:


/var/lib/docker/containers
To remove exited containers: {{Internal|Docker_rm#Remove_Exited_Containers|docker rm - remove exited containers}}


=Troubleshooting=
=Troubleshooting=

Latest revision as of 18:33, 19 April 2018

Internal

Relevance

  • Docker 17.03.1-ce

Enable at Boot

systemd

systemctl enable docker
systemctl start docker

init.d

Start

systemd

systemctl start docker

A docker server running as root:

root       665     1  0 16:00 ?        00:00:02 /usr/bin/dockerd
root       749   665  0 16:00 ?        00:00:01 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim docker-containerd-shim --runtime docker-runc

init.d

As root:

system docker start

Procedures

Subjects

Monitoring

lvs reports the percentage of external storage used.

Accumulation Points

The Local Registry

Stores images in the "container-thinpool" logical volume, statistics available with:

lvs -a

Local images can be inspected with

docker images

/var/lib/docker/containers

Each running or stopped container has a corresponding directory there.

To remove exited containers:

docker rm - remove exited containers

Troubleshooting