Applies To: CLOUD VPS DEDICATED
Docker is an open platform for building, shipping and running distributed applications. It gives programmers, development teams and operations engineers the common toolbox they need to take advantage of the distributed and networked nature of modern applications.Docker requires a Linux host with Kernel version 3.10 or later, and can be installed manually in most of Memset's supported Linux Operating Systems. To make things even easier Memset provides a Ubuntu LTS image (for both 16.04 and 18.04) that comes with Docker pre-installed and our registry mirror already configured. Just select the appropriate image in the "Operating System" section of the Cloud VPS customisation during the checkout process, or when reimaging your server and you're ready to go.
Configuring Memset's Registry Mirror
Memset's registry mirror can be configured in any Docker installation by adding the following command line parameter to docker binary:
Our pre-installed Docker image already has the mirror configured (this can be disabled by editing /etc/default/docker).
It is highly recommended to use the mirror as it speeds up most image deployment.
Starting and Stopping the Docker Daemon (Ubuntu LTS)
In our Ubuntu image Docker daemon is managed by upstart, so the usual initctl commands can be used.You can stop Docker with:
initctl stop docker
and start it again with:
initctl start docker
Other verbs like restart or status can be used too.
First verify the Docker version installed in your server by running:
It will output something like the following:
Client version: 1.7.1 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 786b29d OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Go version (server): go1.4.2 Git commit (server): 786b29d OS/Arch (server): linux/amd64
Then you can try the "hello-world" container with:
docker run --rm hello-world
It will output a "Hello from Docker" message plus some extra information.