Skip to content

Commit

Permalink
update docker readme: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmermaid committed Nov 20, 2023
1 parent bf6d0d3 commit eb32997
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,29 @@ To run a `pykoi` Docker container, launch a GPU instance with the following conf
<img src="../example/image/readme_ec2_storage.png" alt="Alt text" width="50%" height="50%"/>

### 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:
Expand Down

0 comments on commit eb32997

Please sign in to comment.