Update Docker Setup
parent
648837174b
commit
c7b0f98206
1 changed files with 25 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
## Dependencies
|
## Dependencies & Repo
|
||||||
|
|
||||||
1. Install the required dependencies with the following apt command:
|
1. Install the required dependencies with the following apt command:
|
||||||
|
|
||||||
|
|
@ -29,3 +29,27 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.
|
||||||
```bash
|
```bash
|
||||||
sudo apt update
|
sudo apt update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Install & Setup
|
||||||
|
|
||||||
|
1. Install essential Docker packages with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt install docker-ce docker-ce-cli containerd.io
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Add the user to the Docker group with:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo usermod -aG docker $USER
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Logout and back in or reboot host machine
|
||||||
|
|
||||||
|
## Test Docker
|
||||||
|
|
||||||
|
To confirm Docker is running correctly, test the setup with a simple container. Run the "hello-world" container with the following docker run command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run hello-world
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue