How to Setup Docker Engine Containers on Linux in Azure/AWS/GCP
To run the Docker Engine on Linux in Azure, AWS or GCP, the best way is to install the Docker Engine Community image from the marketplace. It comes preinstalled with Docker Engine Community and is fully configured as per the requirements to run Docker in the cloud. Click on the links below to deploy into your environments
Getting Started
Once your Docker community server has been deployed, the following links explain how to connect to a Linux VM:
- How to connect to a Linux VM on Azure
- How to connect to a Linux VM on AWS
- How to connect to a Linux VM on GCP
Once connected and logged in, the following section explains how to start using Docker
Test your Docker Engine
To verify that Docker Engine is working correctly, type the following command
sudo docker run hello-world
This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits as per the following screenshot:
If you receive a message ‘Cannot connect to the Docker daemon‘, means that you will need to start the Docker service. Run the following command:
sudo systemctl start docker
or
sudo service docker start
Then re run the command to verify Docker is running
sudo docker run hello-world
Running Docker and creating containers
You should now be ready to start using Docker and creating container images.
Docker Engine is installed and running. The docker
group is created but no users are added to it. You need to use sudo
to run Docker commands.
To manage Docker as a non-root user refer to the following documentation – https://docs.docker.com/engine/install/linux-postinstall/
Documentation
Docker user guides can be found on – https://docs.docker.com/engine/
Reference docuentation for the Docker platforms various APIs, CLIs, and file formats can be found on – https://docs.docker.com/reference/
Support
Any questions regarding the installation of this solution, please leave a comment below or contact us and we will assist as much as we can to help you get Docker up and running in your environment.
Disclaimer: Docker is a registred trademark of Docker Inc and is licensed under Apache LicenseV2. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.
Related Posts:
- How To Install and Use Docker Engine on Ubuntu 20.04 (Tutorial)
- How To Install and Use Docker Engine on CentoS 8 Tutorial (Step by Step)
- How To Install and Use Docker Engine on Debian 11 Tutorial
- How To Install and Use Docker Engine on Ubuntu 22.04 (Tutorial)
- How to Secure Docker Containers with Docker Secrets
- How to Setup WordPress Docker Containers on AWS