Main Menu

Search

Showing posts with label podman troubleshooting. Show all posts
Showing posts with label podman troubleshooting. Show all posts

PODMAN: Command To Check The TEMP Image Copy Directory (tmp) Used By Podman

Below podman command can be used to check the podman temp file location where images are stored during pull/push

podman info | grep -i tmp


Keywords:

temporary temp tmp location file files cache checking validate validating how to check

PODMAN: Command To Tail Podman Container Instance Logs

Below is the command to tail podman container instance logs.

podman logs -tf <container id>

<container id> can be gathered from "podman ps -a" command.



Keywords

tail tailing log logging logs logfiles file files 

PODMAN: How to Specify Registry Credentials (Login Username and Password) With Podman Command?

Following command can be used to Specify Registry Credentials (Login Username and Password) With Podman Command.

Replace private registry hostname and port number in below command.

podman pull --creds "username:password" private-registry:5000/nginx:latest


Keywords:

pulling pushing push pull credentials username password user authenticate logging authenticating



PODMAN: How to Enable Log Debug For Podman Commands (--log-level=debug)

For enabling the debug for podman commands use --log-level=debug command. Following is the command reference.

Replace private-registry and 5000 port number as needed in below command.

podman pull --log-level=debug private-registry:5000/kube-apiserver:latest



Keywords:

Pull pulling push pushing debug debugging info verbose verbosity log loglevel logging 


PODMAN: How to Tail Podman Container Logs?

Below steps can be used to tail podman container logs.

1. Check the running podman instance container ID

podman ps -a

Below is sample output

CONTAINER ID  IMAGE                                               COMMAND               CREATED      STATUS            PORTS                   NAMES
044ff210d1e3  container-registry.oracle.com/os/registry:v2.7.1.1  serve /etc/docker...  2 hours ago  Up 3 minutes ago  0.0.0.0:5000->5000/tcp  registry

2. Run podman logs on the podman container ID

podman logs -f <container id>

In this example.

podman logs -f 044ff210d1e3


Keywords:

tail tailing command commands containerization logging log 

PODMAN / CRIO: How To Manually Test Pulling Container Images From Oracle Container Registry (OCR) Using Podman & CRIO?

We can manually pull nginx container image from Oracle container registry (OCR) from podman or CRIO to test if they are installed correctly and if the images are getting pulled without issues.

Following commands can be used.

Podman

podman pull container-registry.oracle.com/olcne/nginx:1.17.7

CRIO

crictl pull container-registry.oracle.com/olcne/nginx:1.17.7

Keywords:

pulling pull container containers image images container-registry.oracle.com ocr registries issues problems test check testing checking