Installing Docker and Docker Compose¶
Operating System
Docker install varies depending on the OS. Refer to the Table of Contents on the right for the specific OS you are using. If your OS is not listed, refer to the official Docker documentation.
On AWS EC2 with AWS Linux 2¶
Installing Docker on AWS EC2¶
Amazon Linux 2 comes with Docker available in its repositories. Install it by running:
Log out and log back in for this to take effect.
Check if Docker is installed correctly by running:
Bash | |
---|---|
Installing Docker Compose on AWS EC2¶
Bash | |
---|---|
Check if Docker Compose is installed correctly by running:
Bash | |
---|---|