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
Hi all,
Forgive me if this is a stupid question:
If I run a container like this: docker run -p 3000:3000 --name node node
or docker-compose -f docker-compose.yml up
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9656dc62989b node "docker-entrypoint.s…" 24 seconds ago Exited (0) 13 seconds ago node
It runs ok if docker run -it -p 3000:3000 --name node node
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
036e6be7a563 node "docker-entrypoint.s…" 4 seconds ago Up 3 seconds 0.0.0.0:3000->3000/tcp node
I'm newbie and I just want to start a container with node image so I can access into it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
Forgive me if this is a stupid question:
If I run a container like this:
docker run -p 3000:3000 --name node node
or
docker-compose -f docker-compose.yml up
It runs ok if
docker run -it -p 3000:3000 --name node node
I'm newbie and I just want to start a container with node image so I can access into it.
Beta Was this translation helpful? Give feedback.
All reactions