To install Docker on Ubuntu, do the following:

  1. Update the lists.

    sudo apt-get update


  2. Install the packages to use the repository via HTTPS

    $ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common


  3. Add the official Docker GPG key.

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add 


  4. Set up the repository:
    1. for x86_64 / amd64 architecture:

      $ sudo add-apt-repository \
      "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) \
      stable"


    2. for armhf architecture:

      $ sudo add-apt-repository \
      "deb [arch=armhf] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"


  5. Update the lists.

    sudo apt-get update


  6. Install the docker-ce.

    sudo apt-get install docker-ce


  7. 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


  8. Set the access permissions.

    sudo chmod +x /usr/local/bin/docker-compose


  9. Check the installation and version of docker-compose.

    docker-compose --version


  10. Add the user to Docker.

    sudo usermod -aG docker user


  11. Install the Mercurial.

    sudo apt-get install mercurial


  12. Add to the hgrc file

    sudo nano  ~/.hgrc

    the following:

    [ui]
    tls = False


  13. Clone the repository.

    hg clone https://bitbucket.org/Axxonsoft/axxonnext.docker /home/pc/axxonnext.docker


  14. Update the repository if necessary.

    cd axxonnext.docker
    hg pull -u


  15. Restart the OS.

    sudo reboot