CosmicAC Logo

How To Access a GPU Container

Connect to a running GPU container to execute commands and manage your environment. Once connected, you can install dependencies, run training scripts, and interact with your container.

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


Prerequisites

  • Running GPU container
  • CosmicAC CLI installed (see Installation guide)

Login (Optional)

If not already authenticated:

npx cosmicac login

This opens your browser for authentication. If the browser doesn't open automatically, copy the URL from the terminal and paste it into your browser. Complete the login to continue.

List your jobs

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

npx cosmicac jobs list

Open a shell session

npx cosmicac jobs shell <jobId> <containerNumber>

Replace:

  • <jobId> — Your job ID.
  • <containerNumber> — Target container number.

Type exit and press Enter to close the shell session.


What's next?

  • CLI Commands — Full command reference with output examples.

On this page