---
# System prepended metadata

title: Docker installation

---

# Docker installation

**Step 1: apt-get update**
```
sudo apt-get update
```
![](https://i.imgur.com/3xmfTSr.png)

**Step 2: install Docker**
```
sudo apt-get install docker.io
```
![](https://i.imgur.com/FIwkW7L.png)

**Step 3: check docker status**
```
service docker status
```
![](https://i.imgur.com/Vp0VduB.png)

**Step 4: Add your user account to docker group**
```
sudo usermod -aG docker <username>
```

You can restart your ubuntu or login/logout your ubuntu, then your account is ready for using docker 
**Step 5: Run docker Hello World image**
```
docker run hello-world
```
![](https://i.imgur.com/VQh9fe3.png)

**Step 6: Install docker-compose**
```
sudo apt-get install curl
```
```
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
```
![](https://i.imgur.com/JGs7abb.png)

```
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
```
![](https://i.imgur.com/ZCD2jeC.png)
