small changes in readme
This commit is contained in:
21
README.md
21
README.md
@@ -85,11 +85,9 @@
|
|||||||
- the version installed with apt is 1.17.1, way out of date
|
- the version installed with apt is 1.17.1, way out of date
|
||||||
|
|
||||||
**remove old versions**
|
**remove old versions**
|
||||||
|
|
||||||
- `sudo apt remove docker docker-engine docker.io containerd runc`
|
- `sudo apt remove docker docker-engine docker.io containerd runc`
|
||||||
|
|
||||||
**preparing directory**
|
**preparing directory**
|
||||||
|
|
||||||
- `sudo apt update`
|
- `sudo apt update`
|
||||||
- `sudo apt install ca-certificates curl gnupg lsb-release`
|
- `sudo apt install ca-certificates curl gnupg lsb-release`
|
||||||
- `sudo mkdir -p /etc/apt/keyrings`
|
- `sudo mkdir -p /etc/apt/keyrings`
|
||||||
@@ -97,29 +95,26 @@
|
|||||||
- `echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`
|
- `echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`
|
||||||
|
|
||||||
**installing docker engine**
|
**installing docker engine**
|
||||||
|
|
||||||
- `sudo apt update`
|
- `sudo apt update`
|
||||||
- `sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin`
|
- `sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin`
|
||||||
|
|
||||||
**check if installation worked**
|
**check if installation worked**
|
||||||
|
|
||||||
- `sudo docker run hello-world`
|
- `sudo docker run hello-world`
|
||||||
|
|
||||||
**installing docker compose** checked version on github release, see above
|
**installing docker compose** checked version on github release, see above
|
||||||
|
|
||||||
- notice the 'v' below, before the version name (docker doc has it wong)
|
- notice the 'v' below, before the version name (docker doc has it wong)
|
||||||
- `sudo curl -L "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose`
|
- `sudo curl -L "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose`
|
||||||
- `sudo chmod +x /usr/local/bin/docker-compose`
|
- `sudo chmod +x /usr/local/bin/docker-compose`
|
||||||
|
|
||||||
**volumes vs bind mounts :**
|
**volumes vs bind mounts :**
|
||||||
|
|
||||||
- [docker doc: use volumes](https://docs.docker.com/storage/volumes/)
|
- [docker doc: use volumes](https://docs.docker.com/storage/volumes/)
|
||||||
- [docker doc: use bind mounts](https://docs.docker.com/storage/bind-mounts/)
|
- [docker doc: use bind mounts](https://docs.docker.com/storage/bind-mounts/)
|
||||||
- [comparison volume vs bind mounts](https://devopscook.com/docker-volumes-vs-bind-mounts/)
|
- [comparison volume vs bind mounts](https://devopscook.com/docker-volumes-vs-bind-mounts/)
|
||||||
- [fundamentals use of volumes and bind mounts](https://medium.com/dlt-labs-publication/bind-mounts-volumes-in-docker-81523303cbb4)
|
- [fundamentals use of volumes and bind mounts](https://medium.com/dlt-labs-publication/bind-mounts-volumes-in-docker-81523303cbb4)
|
||||||
- [how volumes and bind mounts are really differents](https://serverfault.com/questions/996785/docker-volumes-vs-mount-binds-what-are-the-use-cases)
|
- [how volumes and bind mounts are really differents](https://serverfault.com/questions/996785/docker-volumes-vs-mount-binds-what-are-the-use-cases)
|
||||||
- bind mounts are normal files anywhere on the computer, that docker container can access with absolut path and modify. They can also be modified without docker, since they are juste files
|
- bind mounts are normal files anywhere on the computer, that docker container can access with absolut path and modify. They can also be modified without docker, since they are juste files
|
||||||
- volumes are only modifiable by docker, they don't need an absolut path, and they are not dependent of host architecture
|
- volumes are only modifiable by docker, they don't need an absolut path, and they are not dependent of host architecture
|
||||||
|
|
||||||
#### nginx
|
#### nginx
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user