Go to documentation repository
Page History
To install the Docker on Ubuntu, do the following:
- Prepare the environment:
Update the lists.
sudo apt-get updateCode Block Install the packages to use the repository via HTTPS.
Code Block
sudo apt-get install
apt-transport-https
ca-certificates
curl gnupg2
software-properties-common
Add the official Docker GPG key.
Code Block
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Code Block sudo apt-key fingerprint <0EBFCD88>
- Configure the repository:
for the x86_64 / amd64 architecture
.
Code Block
sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable"
for
the armhf architecture.
Code Block
sudo add-apt-repository
"deb [arch=armhf] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable"
Update the lists.
Code Block sudo apt-get update
Install and configure the Docker:
Install docker-ce.
Code Block sudo apt-get install docker-ce
docker-compose
Add a user to the
Docker.
Code Block sudo
adduser
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/axxonnext.docker /home/pc/axxonnext.docker
Update the repository if necessary.
Code Block cd axxonnext.docker hg pull -u
Restart the OS.
sudo rebootCode Block user docker
Install git.
Code Block sudo apt-get install git gettext
Go to the directory where the container will be located.
Code Block cd /home
Clone the repository.
Code Block git clone https://src.axxonsoft.dev/bitbucket/projects/ONE/repos/axxonnext.docker/browse
- Update the repository:
Go to axxonone.docker folder.
Code Block cd axxonone.docker
Download content from git.
Code Block git pull
- Install the container:
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/
Start building the container.
Code Block cd /home/axxonone.docker/server
Restart OS after the container is built.
Code Block sudo reboot
The Docker is installed on Ubuntu.