New answers tagged

1 vote
Accepted

Is it possible to seed data as part of docker compose up -d

Have a psql script run to load the database at startup: dc-patients-db: image: postgres:16.2 ports: - "8005:5432" volumes: - data-volume:/var/lib/postgresql/data ...
mikequentel's user avatar
0 votes
Accepted

Ubuntu container not running in detached mode

When you run a Docker container using the docker run command with the -d flag, you're instructing Docker to run the container in detached mode, meaning it runs in the background. However, whether the ...
Ajay's user avatar
  • 190
1 vote

Ubuntu container not running in detached mode

The ubuntu image, by defaults, starts a shell. If standard input isn't connected, the container exits immediately. You can see this even without detached mode; try this: docker run ubuntu:latest You ...
larsks's user avatar
  • 682

Top 50 recent answers are included