I am trying to understand how to start an exited ubuntu container without stopping it again. I ran the below command to pull and install an ubuntu container on my machine:
docker container run --name ubuntu ubuntu (Notice that I did not use the -it option while creating this container)
I want to understand how do u start such a container, when i run a command docker container start ubuntu, it starts and immediately exits and I can verify that using docker container ps -a.
Even if i use docker container start -i ubuntu it doesn’t work. So my question is how can I start and persist this ubuntu container?