The guide how to use Docker(™) Compose Server on Linux CentOS 8.4
- After purchasing and starting the VM you should know its IP address. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line of “Public IP Address”).
- To connect to a VM, you need the PuTTy application to connect via ssh. You can download it at the following link – Download
- Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.
- In the opened console you should enter a username and password that were specified when creating the virtual machine (the password won’t be displayed while entering).
- To check that Docker is up and running, enter the command
> sudo docker run hello-world
- If, after entering the previous command, you see the “Cannot connect to the Docker daemon” notification, then you are not connected to Docker. To resolve this issue, enter one of the following commands:
> sudo systemctl start docker
> sudo service docker start
- After that, enter the command again > sudo docker run hello-world
- In order to confirm the installation of Docker Compose, you need to run the command:
> docker-compose -version
- For a more detailed description of how Docker works, you can refer to the official documentation by clicking on the link – https://docs.docker.com/compose/gettingstarted/