How to run container ubuntu since portainer

hello,

i try to run ubuntu container in portainer but the status is stopped

do you know how to run ubuntu container on portainer, ?

that work with this command docker run -d -ti --name myubuntu ubuntu /bin/bash #push an myubuntu container from the image ubuntu

but not with the gui,

do you have an idea, thanks for your response

The /bin/bash part of the docker run example you provided is the “command” to run when the container starts. When creating the container in Portainer, you would need to set a command otherwise it will exit immediately.

A container needs to actually do something specific, not just run an OS - containers are not replacements for VMs. I suggest you have a read of this blog post from the Portainer founder about containers versus VMs:

1 Like