š³ Docker is an open-source platform that allows you to automate the deployment and management of applications within lightweight, portable containers. Here are some essential Docker commands and basic instructions to help you get started!
š§ To install Docker, follow these steps:
docker --version.š Here are some commonly used Docker commands:
docker run <image>: Create and start a new container from an image.docker start <container>: Start a stopped container.docker stop <container>: Stop a running container.docker restart <container>: Restart a running container.docker rm <container>: Remove a stopped container.docker ps: List running containers.docker ps -a: List all containers (including stopped ones).docker pull <image>: Download an image from a registry.docker build -t <tag> <path>: Build a new image from a Dockerfile.docker push <image>: Push an image to a registry.docker images: List all downloaded images.docker rmi <image>: Remove an image.docker version: Show Docker version information.docker info: Display Docker system-wide information.docker logs <container>: View the logs of a container.docker exec -it <container> <command>: Execute a command inside a running container.docker-compose up: Start services defined in a Compose file.docker-compose down: Stop and remove services defined in a Compose file.docker-compose build: Build or rebuild services defined in a Compose file.docker-compose logs <service>: View the logs of a service in a Compose file.š Here's a basic workflow to help you use Docker effectively:
š For more detailed instructions and advanced usage, refer to the official Docker documentationā .
Happy Dockerizing! šāØ
Content type
Image
Digest
sha256:cd592a712ā¦
Size
76.6 MB
Last updated
over 3 years ago
docker pull sujayadkesar/sysadmin