Docker
This section contains scripts related to Docker:
- docker_build
-
build the image
- docker_cleanup
-
remove all project-related containers, images, networks, and volumes
- docker_health
-
query the health status of the container
- docker_ignore_all
-
create a
.dockerignore
file ignoring everything - docker_inspect
-
display detailed information on the container
- docker_logs
-
display the logs of the container
- docker_remove
-
remove the container and associated unnamed volumes
- docker_sh
-
open a shell into the running container
- docker_start
-
start the image
- docker_stop
-
stop the container
Usage
The scripts should be copied into a project, e.g.:
<project root directory>
├── Dockerfile
└── scripts
├── docker_build.sh
├── ...
And then invoked from the directory containing the Dockerfile
:
$ scripts/docker_build.sh
All scripts need Docker to be installed. |
You should modify the
The scripts expect the image to be named The scripts expect the container to be named |
You can try the scripts with the example Dockerfile:
|