Skip to main content

Container execution

TLDR;

Opctl supports using container statements to make your op run OCI image based containers.

Note: a common place to obtain OCI images is Docker Hub.

Example

  1. Start this op:
    name: containerExecution
    run:
    container:
    cmd: [echo, 'hello!']
    image: { ref: alpine }
  2. Observe the container is started, hello! is logged, and the container exits.