Couldn't connect with compose run instead of compose up #1619
-
(Important thing to look at is a 'PORTS' section) In the first method I'm using $ docker compose run --rm --name server server And in 2nd, $ docker compose up --force-recreate -V -d Why can't I connect to my server with the 1st method, because when I use the 2nd method without |
Beta Was this translation helpful? Give feedback.
Answered by
itzg
Jul 21, 2022
Replies: 1 comment 3 replies
-
https://docs.docker.com/engine/reference/commandline/compose_run/ |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
PackmanDude
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker compose run
is not the command you think it is. It's not applicable for what you're wanting.https://docs.docker.com/engine/reference/commandline/compose_run/