Docker keep started the right way


Jack_T

Recommended Posts

I can't understand (and I really don't find) how to keep a "empty" container running...

in the specific I try to use "ubuntu" from Docker Hub.

 

in CA with Docker Hub results option on enabled:

I search "Ubuntu" and select the first one (from Docker Hub)... the basic ubuntu image...

 

if I click on START and after a few seconds come back to STOPPED.

 

How to keep it running?

 

 I know it's normal that an empty container end immediatly... but on "normal" docker I use this to attach to bash and keep it running:

docker run -it ubuntu /bin/bash
docker attach dockerID
docker exec -it container bash

 

or for example I can use "sleep" to keep alive for x seconds:

docker run ubuntu sleep 10

 

I can't understand how to pass those parameters by Unraid interface...

I try in Advance mode... but no way....

 

 

so I try to made all by Unraid CLI...

docker run -it ubuntu /bin/bash

this create a new container with a random name...

 

it's a perfectly working container! stay alive... and have his working console...

 

but it is without [Edit] option in the menu... and have some issues...

 

so I think it isn't the best way!!!!

 

 

So the question is...

 

If I want a basic "ubuntu" container from Docker Hub how can I keep it running?

(so I can enter in the console and work on it?)

 

Thank you in advance

 

 

 

Unraid Version 6.8.3

no particolar log to attach here...

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.