Why docker container exits immediately
This did the trick for me: docker run -dit ubuntu After it, I checked for the processes running using: docker ps -a For attaching again the container docker attach CONTAINER_NAME TIP: For exiting without stopping the container type: ^P^Q