---
name: "singularity-oci-exec"
section: "1"
platform: "linux"
package: "apptainer"
version: "1.5.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/singularity-oci-exec"
---

# singularity-oci-exec(1)

Execute a command within container (root user only)

## NAME

apptainer-oci-exec - Execute a command within container (root user only)

## SYNOPSIS

**apptainer oci exec**

## DESCRIPTION

Exec will execute the provided command/arguments within container identified\
   by container ID.

## OPTIONS

**-h**, **--help**\[=false\]\
 	help for exec

## EXAMPLE

```
  $ apptainer oci exec mycontainer id
```

## SEE ALSO

**[apptainer-oci(1)](/apptainer-oci/1.md)**

## HISTORY

22-Sep-2026 Auto generated by spf13/cobra
