Docker
This page would define installation, uninstallation and user setup for Docker
Info
Run these using your standard user with sudo if required
Docker⚓︎
Installation and Uninstallation⚓︎
Warning
Best way would be to follow Official Docker Guide
Docker Engine and Compose Plugin⚓︎
-  
Install docker engine and compose
Bash  -  
Add User to Docker group
Bash  -  
Enable and Run docker service
Bash  
Warning
Log out and log back in to make sure everything works fine
Uninstallation⚓︎
| Bash | |
|---|---|
-  
Install pre-requisite packages
 -  
GPG Key
 -  
Add Repo URL to apt sources
 -  
Finally, Install docker engine
 -  
Add User to Docker group
Bash  -  
Enable and Run docker service
Bash  
Warning
Log out and log back in to make sure everything works fine
Uninstallation⚓︎
| Bash | |
|---|---|
-  
Install pre-requisite packages
 -  
GPG Key
 -  
Add Repo URL to apt sources
 -  
Finally, Install docker engine
 -  
Add User to Docker group
Bash  -  
Enable and Run docker service
Bash  
Warning
Log out and log back in to make sure everything works fine
Uninstallation⚓︎
| Bash | |
|---|---|
Environment variables⚓︎
Warning
Official way of doing environment variables in docker-compose is via .env file
 This way makes it easier for me to backup env vars with compose files without exposing secrets
-  
Create
.zshenvfile in your home directory and create environment variables with following format -  
Restart shell or source file
Bash  -  
Test variables with echo
Bash  
Docker Network⚓︎
-  Create custom docker network for all containers and Databases 
Bash