This repository contains a collection of Bash scripts to manage and interact with Docker containers, images, volumes, networks, and other resources. These scripts are designed to simplify common Docker tasks, allowing users to quickly perform container and image management actions with ease.
-
docker-bind-mount.sh
- Handles bind mounts, allowing you to link directories from the host to the container.
-
docker-container-env.sh
- Configures environment variables for a Docker container.
-
docker-container-exec.sh
- Executes commands inside a running Docker container.
-
docker-container-logs.sh
- Fetches and displays logs from a Docker container.
-
docker-container-network.sh
- Manages and inspects the network settings for Docker containers.
-
docker-container-port.sh
- Manages port mappings between the host and Docker containers.
-
docker-container-stats.sh
- Displays real-time resource usage statistics of running Docker containers.
-
docker-container-volume.sh
- Manages volumes attached to Docker containers.
-
docker-container.sh
- General container management script (start, stop, remove).
-
docker-image.sh
- Manages Docker images (build, remove, inspect).
-
docker-inspect.sh
- Inspects Docker objects like containers, images, and volumes to retrieve detailed configuration data.
-
docker-network.sh
- Manages Docker networks (create, remove, inspect).
-
docker-prune.sh
- Cleans up unused Docker containers, networks, images, and volumes to free up disk space.
-
docker-resource-limit.sh
- Sets resource limits (CPU, memory) for Docker containers.
-
docker-volume-backup.sh
- Backs up data from Docker volumes to the host machine.
-
docker-volume-restore.sh
- Restores data to Docker volumes from a backup.
-
docker-volume.sh
- Manages Docker volumes (create, inspect, remove).
Each script is designed to be self-contained and can be run directly from the command line. For example:
./docker-container-logs.sh <container-name>