You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POSTGRES_USER: username to access the database (pick anyone. i.e: testuser) POSTGRES_PASSWORD: password to access the database (pick anyone. i.e: test1234) MEASUREMENTS_DB: "measurementsPOSTGRES_DB: "dev" POSTGRES_HOST: the name of the postgres container (in this case: db) POSTGRES_PORT: 5432
Docker
Build container
$ docker-compose build
Start services
$ docker-compose up
List images
$ docker images
Remove dangling images:
When you run a docker-compose build, it creates a new image, but it doesn't remove the old one, so you can have a lot of images with the same name but different id. Then, you can remove all of them with the following command:
Warning: This will remove all containers, images, volumes and networks not used by at least one container.
Its recommended to run this command before docker-compose up to avoid problems.
0 commit comments