The CSM server works with both Docker Community Edition (CE) and Docker Enterprise Edition (EE). For more information, refer
to official Docker documentation, https://docs.docker.com/install/overview/.
Use Docker 19.03 or later versions to install the CSM server. You can use the following command to check the version of the
Docker:
$ docker version
Client: Docker Engine - Community
Version: 19.03.9
API version: 1.40
Go version: go1.13.10
Git commit: 9d988398e7
Built: Fri May 15 00:25:34 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.9
API version: 1.40 (minimum version 1.12)
Go version: go1.13.10
Git commit: 9d988398e7
Built: Fri May 15 00:24:07 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
Docker Proxy Configuration (Optional)
If you install the CSM server behind an HTTPS proxy, for example, in corporate settings, you must configure the Docker systemd
service file as follows:
-
Create a systemd drop-in directory for the docker service:
$ sudo mkdir -p /etc/systemd/system/docker.service.d
-
Create a file titled /etc/systemd/system/docker.service.d/https-proxy.conf that adds the HTTPS_PROXY environment variable. This file allows the Docker daemon to pull the containers from the repository
by using the HTTPS Proxy:
[Service]
Environment="HTTPS_PROXY=http://proxy.example.com:443/"
Note |
It is common oversight that the HTTPS_PROXY environment variable uses capital letters and the proxy URL starts with http://
and not https://.
|
-
Reload the configuration changes:
$ sudo systemctl daemon-reload
-
Restart the Docker:
$ sudo systemctl restart docker
-
Verify that you have loaded the configuration:
$ systemctl show --property=Environment docker
Environment=HTTPS_PROXY=http://proxy.example.com:443/
Verify the Docker configuration
To check if you have properly installed the Docker and to ensure that it is up and running, use the following command:
$ systemctl is-active docker
active
To verify whether you have properly configured the Docker demon, and whether the Docker is able to pull the images from the
repository and is able execute the test container; use the following command:
$ docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
d1725b59e92d: Pull complete
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/