exposes the specified ports: configuration (2471) http (80); format is 'hostPort:containerPort'
-v plcgitcomplete-data:/etc/Tani
creates or resuses a volume named plcgitcomplete-data do store the PlcGit Complete configuration and license data
-d
run in detached mode
--rm
remove the container after exiting
plcgitcomplete
the image to use
Notes:
The permanent data will be stored in a docker volume plcgitcomplete-data on the host computer. To find it, run: docker volume inspect plcgitcomplete-data
Stop the running container
run: docker stop plcgitcomplete1
parameters:
plcgitcomplete1
the instance to stop
Build the base image. This this contains all required dependencies.
run: docker build -t plcgitagent/base base
parameters:
-t plcgitagent/base
gives a name to the new image
base
the directory where the Dockerfile is located
Notes:
This requires internet access, as it downloads a docker base image.
The name is referenced in the Dockerfile of the second step.
Optional: archive this base image (e.g. for reproducible build or transfer into offline environment).
to export, run: docker save -o plcgitagent-base.img plcgitagent/base
parameters:
-o plcgitagent-base.img
name of the image file
plcgitagent/base
the image to export
to import (on same or other machine), run docker load -i plcgitagent-base.img
parameters:
-i plcgitagent-base.img
name of the image file
Build the final image. Running this will start the PlcGit Agent software.
run: docker build -t plcgitagent .
parameters:
-t plcgitagent
gives a name to the new image
.
the directory where the Dockerfile is located
Notes:
This does NOT require internet access, as it uses the base image generated in step 1.