To install Docker on Ubuntu, do the following:
Update the lists.
sudo apt-get update |
Install the packages to use the repository via HTTPS
$ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common |
Add the official Docker GPG key.
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add |
for x86_64 / amd64 architecture:
$ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" |
for armhf architecture:
$ sudo add-apt-repository \ "deb [arch=armhf] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" |
Update the lists.
sudo apt-get update |
Install the docker-ce.
sudo apt-get install docker-ce |
Check the current version of docker-compose and upgrade it to the latest version, if necessary.
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose |
Set the access permissions.
sudo chmod +x /usr/local/bin/docker-compose |
Check the installation and version of docker-compose.
docker-compose --version |
Add the user to Docker.
sudo usermod -aG docker user |
Install the Mercurial.
sudo apt-get install mercurial |
Add to the hgrc file
sudo nano ~/.hgrc |
the following:
[ui] tls = False |
Clone the repository.
hg clone https://bitbucket.org/Axxonsoft/axxonnext.docker /home/pc/axxonnext.docker |
Update the repository if necessary.
cd axxonnext.docker hg pull -u |
Restart the OS.
sudo reboot |