sudo snap install docker
Add this to your ~/zshrc
:
plugins=(... docker)
Run this command (you need to add the container_name
and password
):
sudo docker run --name <container_name> -e POSTGRES_PASSWORD=<password> -p 5432:5432 -d postgres
# verify status
sudo snap services docker
# start
sudo start docker
# stop
sudo stop docker
Rocket Seat Guide: https://www.notion.so/Instalando-Docker-6290d9994b0b4555a153576a1d97bee2 Post-installation guide: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user