How to keep ubuntu image running?
You need to start an application with the docker run command that won't exit.
Example:
docker run -d --entrypoint '/bin/bash cat' ubuntu
Solved by myself, a elegant way to keep the container running and waiting for further "attach" or "exec" is the following (to keep the STDIN open by -i option)
docker run -i -d ubuntu