Linux Containers
Containers provide isolated environments for applications.
Key Concepts
- Image - Read-only template
- Container - Running instance
- Volume - Persistent storage
- Network - Container communication
Basic Commands
# Pull image
docker pull nginx
# Run container
docker run -d -p 80:80 nginx
# List containers
docker ps -a
# View logs
docker logs container_id
{# Provenance for articles generated from a source document. Rendered
here rather than stored in the body so it stays accurate and cannot
be edited away, and so the sealed draft stays purely generated. #}
Discussion 0
No comments yet. Be the first to start the discussion!
Leave a Comment