Forrest logo
back to the podman tool

podman-run:tldr:0d94c

podman-run: Run command in a new container from a tagged image.
$ podman run ${image:tag} ${command}
try on your machine

The command "podman run ${image:tag} ${command}" is used to run a new container based on a specified image with a given tag and execute a specific command within the container.

Here is a breakdown of the command:

  • "podman run": This is the main command provided by the Podman tool. It is used to create and start a new container.

  • "${image:tag}": This is a placeholder that should be replaced with the actual image and tag you want to use for the container. For example, if you have an image called "myapp" with the tag "latest", you would replace it with "myapp:latest". This indicates which image and version (tag) of the image you want to use for the container.

  • "${command}": Similar to the previous placeholder, this should be replaced with the specific command you want to execute within the container. For example, if you want to run a script called "start.sh" within the container, you would replace it with "start.sh". This command will be executed inside the container after it starts.

Overall, this command allows you to launch a container from a specific image with a desired tag and run a specific command within the container once it is up and running.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the podman tool