Learn how to create, start, stop, and terminate Pods using the Runpod console or CLI.
If you want to manage Pods using the Runpod CLI, you’ll need to install Runpod CLI, and set your API key in the configuration.
Run the following command, replacing [RUNPOD_API_KEY]
with your API key:
To create a Pod using the Runpod console:
GPU configuration:
CPU configuration:
Runpod supports custom Pod templates that let you define your environment using a Dockerfile.
With custom templates, you can:
If your Pod has a network volume attached, it cannot be stopped, only terminated. When you terminate the Pod, data in the /workspace
directory will be preserved in the network volume, and you can regain access by deploying a new Pod with the same network volume attached.
When a Pod is stopped, data in the container volume is cleared, but data in the /workspace
directory is preserved. To learn more about how Pod storage works, see Storage overview.
By stopping a Pod you are effectively releasing the GPU on the machine, and you may be reallocated 0 GPUs when you start the Pod again. For more info, see the FAQ.
After a Pod is stopped, you will still be charged for its disk volume storage. If you don’t need to retain your Pod environment, you should terminate it completely.
To stop a Pod:
You can also stop a Pod after a specified period of time. The examples below show how to use the CLI or web terminal to schedule a Pod to stop after 2 hours of runtime.
Use the following command to stop a Pod after 2 hours:
This command uses sleep to wait for 2 hours before executing the runpodctl stop pod
command to stop the Pod. The &
at the end runs the command in the background, allowing you to continue using the SSH session.
Pods start as soon as they are created, but you can resume a Pod that has been stopped.
To start a Pod:
Terminating a Pod permanently deletes all associated data that isn’t stored in a network volume. Be sure to export or download any data that you’ll need to access again.
To terminate a Pod:
You can find a list of all your Pods on the Pods page of the web interface.
If you’re using the CLI, use the following command to list your Pods:
Pods provide two types of logs to help you monitor and troubleshoot your workloads:
To view your logs, open the Pods page, expand your Pod, and click the Logs button. This gives you real-time access to both container and system logs, making it easy to diagnose issues or monitor your Pod’s activity.