Guide – How To Start – Docker Compose on Rocky 9 on Amazon

Connecting and configuring Docker Compose on Rocky 9

To work, you should open port 22 (TCP) in the network properties in the Amazon firewall. After purchasing and starting the VM, you should know its IP address. You can find it in your Amazon personal account.

To connect to the Server, you should generate a “Private Key” in advance. This can be done using the following instruction (by choosing the “file format:” option “.ppk” in point 3) Guide – How To – Create and use Key Pair to connect to a VM

  1. Connecting to the VM using PuTTY application. You can download it at the following link – Download
    • Go to section SSH on the left panel, and then to Auth
  • In the “Auth” section, click “Browse” and specify the path to the .ppk file you received earlier.
  • Go to the home page of “Session”, enter the IP address of the VM, and click “Open”.
  • In the opened console, you will need to enter the login rocky

2. To check the server service status, enter the command: 

systemctl status docker

  1. To check that Docker is up and running, enter the command: 

sudo docker run hello-world

  1. To see the current version of docker, enter the command:

sudo docker –version

  1. To see the compose current version of docker, enter the command:

sudo docker-compose –version

For further interaction, please refer to the main documentation:

Docker Documentation 

If you have any questions, welcome to our community:

Docker Blog 

Official website:Docker 

Website Built with WordPress.com.

Up ↑