Run a container from the ubuntu image and start an interactive shell session inside it.
Question
Run a container from the ubuntu
image and start an interactive shell session inside it. You can run commands like ls
, pwd
, etc.
Solution
docker run -it ubuntu bash

PreviousCreate a Dockerfile for a simple Node.js application that serves “Hello World” on port 3000.NextCreate a Dockerfile for a Go application that uses multi-stage builds to reduce the final image size
Last updated