From eb32997ba4f35179a60142a9382e9009a61fb51e Mon Sep 17 00:00:00 2001 From: Rachel Hu Date: Mon, 20 Nov 2023 23:29:32 +0000 Subject: [PATCH] update docker readme: fix indentation --- docker/README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/docker/README.md b/docker/README.md index efb1f81..da70e3e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -14,28 +14,29 @@ To run a `pykoi` Docker container, launch a GPU instance with the following conf Alt text ### Installing Docker on your EC2 + 1. First, in your EC2 terminal apply any updates: - ``` - sudo apt update - ``` + ``` + sudo apt update + ``` 1. Install docker by running the following: - ``` - sudo apt install docker -y - ``` + ``` + sudo apt install docker -y + ``` 1. Add group membership for the default ubuntu so you can run all docker commands without using the sudo command: - ``` - sudo usermod -aG docker ubuntu - id ubuntu - newgrp docker # Reload a Linux user's group assignments to docker w/o logout - ``` + ``` + sudo usermod -aG docker ubuntu + id ubuntu + newgrp docker # Reload a Linux user's group assignments to docker w/o logout + ``` 1. Enable docker service at AMI boot time: - ``` - sudo systemctl enable docker.service - ``` + ``` + sudo systemctl enable docker.service + ``` 1. Start the Docker service: - ``` - sudo systemctl start docker.service - ``` + ``` + sudo systemctl start docker.service + ``` #### Verifying Docker Installation Verify the `Docker` installation by the checking the `docker` service status: