Skip to content

Instantly share code, notes, and snippets.

@dbarjs
Created June 23, 2020 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbarjs/6f044fc31e2b34b8d7388adf50aaf3f0 to your computer and use it in GitHub Desktop.
Save dbarjs/6f044fc31e2b34b8d7388adf50aaf3f0 to your computer and use it in GitHub Desktop.

Install with snap

sudo snap install docker

Add ZSH plugin:

Add this to your ~/zshrc:

plugins=(... docker)

Install Postgres

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

Snap Services Status

# verify status
sudo snap services docker

# start
sudo start docker

# stop
sudo stop docker

Links

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment