Docker Deployment VM s and Docker Executors

Docker executors run in a Docker deployment VM. Like a VM build executor, a Docker deployment VM is an OCI VM Compute instance dedicated to run builds.

To run builds in Docker executors, you add Docker deployment VMs. A Docker executor can run only one build at a time, but a Docker deployment VM can run multiple builds simultaneously, depending on how many Docker executors are configured for the deployment VM. The maximum number of Docker executors that can be run by a given Docker deployment VM is configurable between 1 and 10.

When a job’s build is triggered, VB Studio starts a Docker deployment VM if it is in a stopped state, creates a Docker executor in it, and builds the job using the executor.

Remember, a Docker deployment VM costs you only when it’s in a running state and actively building jobs. When the Docker deployment VM is idle and not building jobs, it’ll be put to sleep. You can configure the number of minutes the deployment VM remains idle before it is put to sleep.

This table describes the Docker deployment VM states:

State What does it mean? Does it cost?
Pending After you add a Docker deployment VM, it is in this state until the management VM finishes building, and then it will start automatically. No
Starting The Docker deployment VM is starting.

If the Docker deployment VM starts from the Pending state, VB Studio installs the operating system and software packages on the Docker deployment VM’s assigned boot volume. This takes time.

If the Docker deployment VM starts from the Stopped state, VB Studio uses software packages and the operating system from the previous run’s saved boot volume.
Yes
Ready The operating system and Docker agent are installed and started. The VM is ready to deploy Docker executors. Yes
Stopping The Docker deployment VM is shutting down.

Before shutting the Docker deployment VM down, VB Studio saves the operating system and software packages to the Docker deployment VM’s assigned boot volume.
Yes
Stopped The Docker deployment VM has shut down. No
Error There’s a hardware or a software issue on the Docker deployment VM. Check the Docker deployment VM’s log to find more about the cause. No

Some key points to remember about Docker deployment VMs and Docker executors: