Docker: Difference between revisions

Jump to navigation Jump to search
Updates
(Reworked page for more legible scribbles then before.)
(Updates)
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install docker docker-compose
sudo systemctl enable docker
</syntaxhighlight>
sudo systemctl start docker
</syntaxhighlight>Fully update the system, install docker and docker compose and enable related services.
 
== Common Docker Commands: ==
sudo docker-compose up -d
</syntaxhighlight>Sudo is used here as Portainer binds to docker.sock. -d runs the compose container(s) in the background.
 
== Common NAS stack inside docker example ==
Docker compose will be used, all containers (that are separate services, databases and libraries excluded) will be in separate docker-compose.yaml files.
 
Docker will expose host ports
6

edits

Navigation menu