Can't install an Ubuntu Docker (from docker hub)


Recommended Posts

You have to give the container something to do.  If you just run "ubuntu:latest" and nothing else it will just stop right after start.

Run this instead:

docker run -ti --rm ubuntu bash

 

Your unraid server will download the image, start a new container with a random name and then present you with a bash terminal prompt.  Then proceed as normal, "apt update && apt install myfavapp" etc

Link to comment
  • 3 years later...
On 2/6/2019 at 5:04 AM, dee31797 said:

You have to give the container something to do.  If you just run "ubuntu:latest" and nothing else it will just stop right after start.

Run this instead:

docker run -ti --rm ubuntu bash

 

Your unraid server will download the image, start a new container with a random name and then present you with a bash terminal prompt.  Then proceed as normal, "apt update && apt install myfavapp" etc

 

The answer really helps me! I am confused to the immediately stop for a week.

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.