Crypterion
Search…
Docker
Root SSH Access is required to proceed. You should contact your server provider on how to obtain the root ssh credentials. For cPanel users, check the SSH Access (root) section
Docker is used for running an instance of BitGo Express follow the guide based on your Operating System on how to install
Ubuntu 18.04
CentOS 7
The Docker installation package available in the official Ubuntu repository may not be the latest version. To ensure we get the latest version, we’ll install Docker from the official Docker repository. To do that, we’ll add a new package source, add the GPG key from Docker to ensure the downloads are valid, and then install the package.
First, update your existing list of packages:
1
sudo apt update
Copied!
Next, install a few prerequisite packages which let apt use packages over HTTPS:
1
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Copied!
Then add the GPG key for the official Docker repository to your system:
1
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Copied!
Add the Docker repository to APT sources:
1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
Copied!
Next, update the package database with the Docker packages from the newly added repo:
1
sudo apt update
Copied!
Make sure you are about to install from the Docker repo instead of the default Ubuntu repo:
1
apt-cache policy docker-ce
Copied!
You’ll see output like this, although the version number for Docker may be different:Output of apt-cache policy docker-ce
1
docker-ce:
2
Installed: (none)
3
Candidate: 18.03.1~ce~3-0~ubuntu
4
Version table:
5
18.03.1~ce~3-0~ubuntu 500
6
500 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages
Copied!
Notice that docker-ce is not installed, but the candidate for installation is from the Docker repository for Ubuntu 18.04 (bionic).
Finally, install Docker:
1
sudo apt install docker-ce
Copied!
Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running:
1
sudo systemctl status docker
Copied!
The output should be similar to the following, showing that the service is active and running:
1
Output● docker.service - Docker Application Container Engine
2
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
3
Active: active (running) since Thu 2018-07-05 15:08:39 UTC; 2min 55s ago
4
Docs: https://docs.docker.com
5
Main PID: 10096 (dockerd)
6
Tasks: 16
7
CGroup: /system.slice/docker.service
8
├─10096 /usr/bin/dockerd -H fd://
9
└─10113 docker-containerd --config /var/run/docker/containerd/containerd.toml
Copied!
Installing Docker now gives you not just the Docker service (daemon) but also the docker command line utility, or the Docker client.
The Docker installation package available in the official CentOS 7 repository may not be the latest version. To get the latest and greatest version, install Docker from the official Docker repository. This section shows you how to do just that.
But first, let’s update the package database:
1
sudo yum check-update
Copied!
Now run this command. It will add the official Docker repository, download the latest version of Docker, and install it:
1
curl -fsSL https://get.docker.com/ | sh
Copied!
After installation has completed, start the Docker daemon:
1
sudo systemctl start docker
Copied!
Verify that it’s running:
1
sudo systemctl status docker
Copied!
The output should be similar to the following, showing that the service is active and running:
1
Output● docker.service - Docker Application Container Engine
2
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
3
Active: active (running) since Sun 2016-05-01 06:53:52 CDT; 1 weeks 3 days ago
4
Docs: https://docs.docker.com
5
Main PID: 749 (docker)
Copied!
Lastly, make sure it starts at every server reboot:
1
sudo systemctl enable docker
Copied!
Installing Docker now gives you not just the Docker service (daemon) but also the docker command line utility, or the Docker client.
Last modified 2yr ago
Copy link