3

I created a docker container (debian:jessie) inside a fedora 21 vm(running on vmware fusion). first time when i entered vm and ran commands it works fine. i exit the vm and start again and attach to it ( docker start -a dev-001) and run few commands they just hung. not able to find the root cause any one has any clue ? i am able to successfully enter/attach the container but simple command like ps just gets hung.

any suggestions ?

2
  • 1
    I found the problem. i should run with -i when using docker start also. Commented Dec 10, 2014 at 18:12
  • This helped me strangely even though I could have sworn I used this exact same command and it wasn't starting my container for me. Maybe I got it confused for docker run. Commented Mar 5, 2015 at 4:16

1 Answer 1

1

You are able to execute commands in an running container with docker exec. This allows you to execute command even when the container is started in detached mode. If you want to run just some commands and then close the container again you can use docker start -i.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.