Launching a container
First, select which project and site you wish to authenticate against.
import chi chi.use_site('CHI@UC') # Set to your project's charge code chi.set('project_name', 'CH-XXXXXX')
Launch a container.
from chi.lease import get_device_reservation from chi.container import create_container # We assume a lease has already been created, for example with # ``chi.lease.create_lease``` lease_name = "my_lease" container_name = "my_container" reservation_id = get_device_reservation(lease_name) container = create_container( container_name, image="centos:8", reservation_id=reservation_id, )