minima_guides

Introduction > Step 1 > Step 2 > Step 3 > Step 4 > Step 5 > Step 6

Step 3 - Install Docker

Installing Docker is straightforward

That's easy for me to say 😥

We can run a command to install Docker. Type the following into your terminal and Docker will download automatically.

sudo yum install docker

To keep Docker running even if you restart your EC2 instance we need a few more commands 🪄

sudo groupadd docker

sudo usermod -a -G docker ec2-user 

sudo systemctl enable docker

Finally, to start Docker 🏁

sudo systemctl start docker

Nice work! Docker is installed; running; configured as a service which automatically starts when your EC2 instance starts.

We should run some checks ✅ to make sure everything is correct. Type in this command:

systemctl status docker

You should get some output like this. Look out for the text in green: enabled and active (running)

Press q to quit this command.

Goto step 4 - Run Minima container