Podmanコンテナのログ
Podmanコンテナのログ
Podmanはcontainers.confを設定する
podman — Podman documentation
code:/etc/containers/containers.conf
containers
log_driver = "none"
log_tag = "podman/{{.ImageName}}/{{.Name}}/{{.ID}}"
Logging driver for the container. Currently available options are k8s-file, journald, none, passthrough and passthrough-tty, with json-file aliased to k8s-file for scripting compatibility. (Default journald).
podman-run — Podman documentation
Podmanはsyslogに対応していない
現時点ではnoneにしておく
デフォルトではcontainer_nameがセットされる
こんな感じ
code:plain
Oct 04 01:38:46 pier yokkincom_wordpress_14528: