Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To install the Docker on Ubuntu, do the following:

  1. Update Prepare the lists.environment:
    Code Block
    sudo apt-get update
      1. Install the packages to use the repository via HTTPS.

        Code Block
      $
      1. sudo apt-get install 
      \
      1. apt-transport-https 
      \
      1. ca-certificates 
      \
      1. curl gnupg2 
      \
      1. software-properties-common


      2. Add the official Docker GPG key.

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


        Code Block
        sudo apt-key fingerprint <0EBFCD88>
      Set up

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

        :
        1. .

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


        2. for

        armhf architecture:
        1. the armhf architecture.

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


      2. Update the lists.


        Code Block
        sudo apt-get update


    1. Install and configure the Docker:

      1. Install docker-ce.


        Code Block
        sudo apt-get install docker-ce
      Check the current version of
      1.  docker-compose
      and upgrade it

      1. Add a user to the

      latest version, if necessary
      1. Docker.


        Code Block
        sudo 
      curl
      1. adduser 
      -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.

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

      Check the installation and version of docker-compose.

      Code Block
      docker-compose --version

      Add the user to Docker.

      Code Block
      sudo usermod -aG docker user

      Install the Mercurial.

      Code Block
      sudo apt-get install mercurial

      Add to the hgrc file

      Code Block
      sudo nano  ~/.hgrc

      the following:

      Code Block
      [ui]
      tls = False

      Clone the repository.

      Code Block
      hg clone https://bitbucket.org/AxxonSoft/Axxon One.docker /home/pc/Axxon One.docker

      Update the repository if necessary.

      Code Block
      cd Axxon One.docker
      hg pull -u

      Restart the OS.

      Code Blocksudo reboot
      1. user docker


      2. Install git.


        Code Block
        sudo apt-get install git gettext


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


        Code Block
        cd /home


      4. Clone the repository.


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


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


          Code Block
          cd axxonone.docker


        2. Download content from git.


          Code Block
          git pull


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


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


      2. Start building the container.


        Code Block
        cd /home/axxonone.docker/server


      3. Restart OS after the container is built.


        Code Block
        sudo reboot


    The Docker is installed on Ubuntu.