CosmicAC Logo

How to access a GPU container

Connect to a running GPU Container job and open an interactive shell session. Use the shell to install packages, run scripts, and manage the environment inside the VM.

Need to create a container first? See Create a GPU Container Job.


Prerequisites

  • A running GPU Container job
  • CosmicAC CLI installed. See Installation.

Log in

Authenticate with your CosmicAC account:

cosmicac login

This opens a browser window. Complete the login steps to continue. If the browser does not open, copy the URL from the terminal and paste it into your browser.

Skip this step if you are already authenticated.

List your jobs

Retrieve the job ID of the container you want to access:

cosmicac jobs list

Find your job in the output and copy its job ID and container ID.

Open a shell session

cosmicac jobs shell <jobId> <containerId>

Replace <jobId> with your job ID and <containerId> with the container ID from the previous step.

To close the shell session, type exit and press Enter.


Next steps

On this page