V
V
Vitaliy Orlov2015-11-07 11:52:08
System administration
Vitaliy Orlov, 2015-11-07 11:52:08

How to run a Docker container created without the -ti option?

Hey!
Played around with docker and can't find info on running a container created without the -ti option.
Here's what I mean:
1) Create container # docker run --name="test" ubuntu
2) Test: # docker ps -a

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES
2f1c532c21aa        ubuntu              "/bin/bash"         5 minutes ago       Exited (0) 3 minutes ago                       test

3) Try to run: # docker start -ai test
4) Check # docker ps , empty
Question: how to get inside such a container? why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya T., 2015-11-07
@orlov0562

Do like everyone else:
just don't forget that docker writes std-output to the file and needs to be cleaned sometimes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question