Thank you for checking out this project! If you find it useful, please consider giving it a star ⭐. Pull requests are always welcome and greatly appreciated. For more technical updates, follow us on Twitter @ClueMediator.
Note: This repository is dedicated to showcasing Docker commands only. If you're interested in more technical content, please visit Clue Mediator's GitHub profile.
- Process Management
- Volumes & Ports
- List volumes
- Create a volume
- Delete a volume
- Show volume metadata
- Delete all volumes not attached to a container
- Mount a local directory to your container
- Copy file or folder from a docker container to host machine
- Copy file or folder from local machine onto a container
- Map a local port to a docker instance
- List the ports a docker container is running on
- Docker Compose
- Images/Repository
- Troubleshooting
- Show the logs of a container
- Follow/tail the logs of a container
- Show timestamps on docker logs
- Show details/metadata of a container
- Show a 'top' view of processes running on a container
- Show a 'top' view of all docker containers
- Show any files that have changed since startup
- Connect to an already running container
- Execute a command on a container
- Show docker system wide information
- Show docker disk space used
-
-
docker ps
-
docker ps -a
-
docker run <image>:<tag>
-
docker run -it <image>:<tag>
-
docker run -d <image>:<tag>
-
docker stop <container>
-
docker kill <container>
-
-
-
docker volume ls
-
docker volume create <volume>
-
docker volume rm <volume>
-
docker volume inspect <volume>
-
docker volume prune
-
docker run -v <local_dir>:<container_dir> <image>
-
docker cp container>:<container_dir> <local_dir>
-
docker cp <local_dir> <container>:<container_dir>
-
docker run -d -p 127.0.0.1:<local_port>:<docker_port> <image>
-
docker port <container>
-
-
-
docker-compose up -d -f <docker_compose_yaml>
-
docker-compose stop
-
docker-compose down
-
docker-compose ps
-
docker-compose logs
-
docker-compose top
-
-
-
docker images
-
docker search <image>
-
docker pull <image>
-
docker build -t <image>:<tag> <run_directory> -f <dockerfile>
-
docker login <repository>
-
docker push <image>:<tag>
-
docker rmi <image>:<tag>
-
docker inspect <image>
-
docker image prune
-
-
-
docker logs <container>
-
docker logs -f <container>
-
docker logs -t <container>
-
docker inspect <container>
-
docker top <container>
-
docker stats
-
docker diff <container>
-
docker attach <container>
-
docker exec -it <container_id> /bin/bash
-
docker system info
-
docker system df
-