CosmicAC Logo

Access a GPU Container Job

Open an interactive shell into a running GPU Container Job with the CLI.

Open an interactive shell into a running GPU Container Job. From the shell, you can run commands directly on the container.

Prerequisites

You need the following before you start:

Steps

Find the job ID

List your jobs and copy the ID of the job you want to access:

cosmicac jobs list

Find the container index

View the job's details, replacing <jobId> with the ID from the previous step:

cosmicac jobs detail <jobId>

The Containers section lists each container with its index, starting at 0. Note the index of the container you want to access.

Open the container shell

Open a shell into the container. Replace <jobId> and <containerId> with the values from the previous steps:

cosmicac jobs shell <jobId> <containerId>

You connect as the appuser user. Run sudo for root access, and type exit to close the shell.

The shell requires the job's status to be running. If the container is still booting, wait, then try again.

Next steps

On this page