Note that the nginx container has the name mywebserver. Note that the lists the containers running on the local machine. Īfter the container is created, the podman ps -a command lists the containers running on the local machine. The -name option gives the container the name mywebserver. The -d option runs the container in the background. The following example creates and runs the container using the nginx:latestcontainer image. $ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES Because the zipkin container was not assigned a name when it was created, the arbitrary name laughing_mahavira is assigned to the container: Then, the command podman ps -a lists the running containers. The output from podman run is the container's UUID. The -doption runs the container in the background in order to free the terminal window to accept future input. The following example runs a container using the latest version of the container image for the distributed tracing tool zipkin that is stored in the quay.io container repository. Otherwise, podeman attempts to get the container image from the remote repository specified in the command. If the image exists on the local machine, that image will be used. Runs a container based on a given : pair. The following sections describe the Podman commands for creating and running containers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |