2020-05-14 18:14:34 +00:00
|
|
|
# Docker Setup on Linux (Ubuntu)
|
2020-09-22 04:53:52 +00:00
|
|
|
|
2020-05-14 18:14:34 +00:00
|
|
|
Docker Docs Install Instructions: https://docs.docker.com/engine/install/ubuntu/#prerequisites
|
2020-09-22 04:53:52 +00:00
|
|
|
|
2020-05-14 18:14:34 +00:00
|
|
|
- Works for Ubuntu before 20.04
|
2020-09-22 04:53:52 +00:00
|
|
|
- If on 20.04 use below instructions in conjunction with the docs _until a 20.04 version is released_.
|
2020-05-14 18:14:34 +00:00
|
|
|
|
|
|
|
|
## Ubuntu 20.04
|
2020-09-22 04:53:52 +00:00
|
|
|
|
2020-05-14 18:14:34 +00:00
|
|
|
Specifically the add-apt-repository command in the docs does not work because 20.04 focal release is not available.
|
|
|
|
|
Follow these instructions: https://askubuntu.com/questions/1230189/how-to-install-docker-community-on-ubuntu-20-04-lts
|
|
|
|
|
Instead of:
|
2020-09-22 04:53:52 +00:00
|
|
|
|
2020-05-14 18:14:34 +00:00
|
|
|
```
|
|
|
|
|
$ sudo add-apt-repository \
|
|
|
|
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
|
|
|
|
$(lsb_release -cs) \
|
|
|
|
|
stable"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
use
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ sudo add-apt-repository \
|
|
|
|
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
|
|
|
|
bionic \
|
|
|
|
|
stable"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Removing incorrect apt-repository
|
2020-09-22 04:53:52 +00:00
|
|
|
|
2020-05-14 18:14:34 +00:00
|
|
|
Use `sudo add-apt-repository -r` to remove:
|
2020-09-22 04:53:52 +00:00
|
|
|
`sudo add-apt-repository -r "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"`
|