Steps:
- sudo apt update
- sudo apt install apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
- sudo apt update
- apt-cache policy docker-ce
- sudo apt install docker-ce
- sudo systemctl status docker
- git submodule init
- git submodule update
- sudo apt install docker-compose
- sudo chown $USER /var/run/docker.sock - turn off sudo
- docker-compose build - Build
- docker-compose up - run container
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
more details
docker ps
docker exec -it bash
psql -U postgres
createuser --interactive --pwprompt