To install the Docker on Ubuntu, do the following:

  1. Prepare the environment:
    1. Install the packages to use the repository via HTTPS.

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


    2. Add the official Docker GPG key.

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


      sudo apt-key fingerprint <0EBFCD88>


    3. Configure the repository:
      1. for the x86_64 / amd64 architecture.

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


      2. for the armhf architecture.

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


    4. Update the lists.


      sudo apt-get update


  2. Install and configure the Docker:

    1. Install docker-ce.


      sudo apt-get install docker-ce docker-compose


    2. Add a user to the Docker.


      sudo adduser user docker


    3. Install git.


      sudo apt-get install git gettext


    4. Go to the directory where the container will be located.


      cd /home


    5. Clone the repository.


      git clone https://src.axxonsoft.dev/bitbucket/projects/ONE/repos/axxonnext.docker/browse


    6. Update the repository:
      1. Go to axxonone.docker folder.


        cd axxonone.docker


      2. Download content from git.


        git pull


  3. Install the container:
    1. Place the downloaded .deb packages in the /server/build folder of the container.


      mv /home/user/Downloads/axxon-* /home/axxonone.docker/server/build/


    2. Start building the container.


      cd /home/axxonone.docker/server


    3. Restart OS after the container is built.


      sudo reboot


The Docker is installed on Ubuntu.