containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
23.83k stars 2.42k forks source link

How to debug/test Docker API #5792

Closed abitrolly closed 4 years ago

abitrolly commented 4 years ago

It looks like podman implementation of Docker API might be missing information on labels.

https://github.com/buildpacks/pack/issues/564#issuecomment-611889058

How to check which requests and answers were sent during podman system service?

baude commented 4 years ago

podman --log-level=debug will show which requests come in

abitrolly commented 4 years ago

Seems fine.

$ podman system service --log-level debug
...
DEBU[0007] APIHandler -- Method: POST URL: /v1.38/images/create?fromImage=heroku%2Fbuildpacks&tag=18 (conn 0/0) 
DEBU[0007] parsed reference into "[overlay@/home/anatoli/.local/share/containers/storage+/run/user/1000:overlay.mount_program=/usr/bin/fuse-overlayfs,overlay.mount_program=/usr/bin/fuse-overlayfs]docker.io/heroku/buildpacks:18" 
DEBU[0007] APIHandler -- Method: GET URL: /v1.38/images/index.docker.io/heroku/buildpacks:18/json (conn 0/1) 
DEBU[0007] parsed reference into "[overlay@/home/anatoli/.local/share/containers/storage+/run/user/1000:overlay.mount_program=/usr/bin/fuse-overlayfs,overlay.mount_program=/usr/bin/fuse-overlayfs]docker.io/heroku/buildpacks:18" 
DEBU[0007] parsed reference into "[overlay@/home/anatoli/.local/share/containers/storage+/run/user/1000:overlay.mount_program=/usr/bin/fuse-overlayfs,overlay.mount_program=/usr/bin/fuse-overlayfs]@8d10618c5b3b5b560c75e0353572b843e3a0d958eb3c6ff452519a7f7be5ea55" 
DEBU[0007] exporting opaque data as blob "sha256:8d10618c5b3b5b560c75e0353572b843e3a0d958eb3c6ff452519a7f7be5ea55" 
DEBU[0012] APIServer.Shutdown called 2020-04-19 07:37:28.677188484 +0300 +03 m=+12.824084578, conn 0/2 
DEBU[0012] 0/2 Active connections/Total connections     
DEBU[0012] APIServer.Shutdown called 2020-04-19 07:37:28.678274869 +0300 +03 m=+12.825170943, conn 0/2