Skip to main content

Docker

Official opctl images are published to docker hub

Image Variants

DinD variant

The opctl:0.1.48-dind variant leverates Docker in Docker (DinD) and requires a --privileged flag.

Example run github.com/opspec-pkgs/uuid.v4.generate#1.1.0 with DinD

docker run \
--privileged \
opctl/opctl:0.1.48-dind \
opctl run github.com/opspec-pkgs/uuid.v4.generate#1.1.0

DooD variant

The opctl:0.1.48-dood variant leverages Docker out of Docker (DooD) and requires:

  • -v /var/run/docker.sock:/var/run/docker.sock to mount the socket of the external docker daemon.
  • -v opctl_data_dir:/root/opctl to mount an external directory as opctl's data dir.

Example run github.com/opspec-pkgs/uuid.v4.generate#1.1.0 with DooD

docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/opctl:/root/opctl \
opctl/opctl:0.1.48-dood \
opctl run github.com/opspec-pkgs/uuid.v4.generate#1.1.0