If I start up a docker container in detached mode using the command:
docker run -d ubuntu
the container immediately exits. docker ps -a yields the output (selected columns shown):
CONTAINER ID        IMAGE               COMMAND             STATUS
245fe871a1e3        ubuntu              "/bin/bash"         Exited (0) 4 minutes ago
Is it possible to start the same container (container ID 245fe871a1e3) in interactive mode with a terminal session?