Docker is a popular open-source platform for developing, shipping, and running containerized applications. Here are some basic commands used in Docker:
docker run: This command runs a command in a new container.
docker start: This command starts one or more stopped containers.
docker stop: This command stops one or more running containers.
docker ps: This command lists all running containers.
docker images: This command lists all images on the host.
docker pull: This command pulls an image from a registry.
docker push: This command pushes an image to a registry.
docker logs: This command shows the logs of a container.
docker exec: This command runs a command in a running container.
docker build: This command builds an image from a Dockerfile.
docker rm: This command removes one or more containers.
docker rmi: This command removes one or more images.
docker network: This command manages networks.
docker volume: This command manages volumes.
docker system: This command performs system-wide tasks such as cleaning up resources.
All of these commands have different options and flags that can be used to customize the behavior. It's important to read the documentation and understand what each command does before using them.
No comments:
Post a Comment