Need Assistance?

support@tutorialshub.in

Docker Fundamentals

Running Containers

ADVERTISEMENT
Docker Free Lesson
5 min read
ADVERTISEMENT

Controlling a Container

The docker run command creates and starts a container. Common options assign a name, publish a port, set environment variables, run in detached mode, and automatically remove the container after it exits.

Use docker exec to execute a command inside a running container. Use docker logs to inspect standard output and error output from the container's main process.

ADVERTISEMENT