conmon(8)
๐ NAME ๐
conmon โ the container monitor utility, bestie. it watches ur containers so u don't have to ๐ซถ
โจ SYNOPSIS โจ
conmon [options]
๐ธ DESCRIPTION ๐ธ
okay so conmon is a command-line program for monitoring and managing the lifecycle of Linux containers that follow the Open Container Initiative (OCI) format. that's the whole vibe. it's giving babysitter for ur containers, and honestly? it ate. ๐
๐ APPLICATION OPTIONS ๐
--api-versionโ which Conmon API version u wanna use, queen's choice โจ-b,--bundleโ location of the OCI Bundle path. where the bundle lives, fr fr ๐ฆ-c,--cidโ identification of Container. its lil name tag ๐--exec-attachโ attach to an exec session. come thru and vibe with it ๐ฆ-e,--execโ exec a command into a running container. slide into its DMs, basically ๐--exec-process-specโ path to the process spec for execution. the receipts for how it should run ๐--exit-commandโ path to the program to execute when the container terminates its execution. the goodbye party planner ๐--exit-command-argโ additional arguments to pass to the exit command. Can be specified multiple times. stack 'em up, no cap ๐ฅ--exit-delayโ delay before invoking the exit command (in seconds). a lil dramatic pause โณ--exit-dirโ path to the directory where exit files are written. where the receipts get filed ๐๏ธ--full-attachโ Don't truncate the path to the attach socket. This option causes conmon to ignore--socket-dir-path. full path only, no cutting corners ๐ฏ-h,--helpโ Show help options. when u need the tea โ-i,--stdinโ Open up a pipe to pass stdin to the container. This option tells conmon to setup the pipe regardless of whether there is a terminal connection. pipe it up, terminal or not ๐ฐ-l,--log-pathโ path to store all stdout and stderr messages from the container. every last word gets written down ๐--leave-stdin-openโ Leave stdin open when the attached client disconnects. don't ghost it, keep the door open ๐ช--log-levelโ Print debug logs based on the log level. set the volume on the gossip ๐--log-max-filesโ Maximum number of log backup files to keep when log rotation is enabled. Default is1. (yes bestie, the default is literally1) 1๏ธโฃ--log-rotateโ Enable log rotation instead of log truncation. When enabled, log files are rotated with numbered suffixes (.1,.2, etc.) instead of being truncated when they reach the maximum size. glow-up instead of deletion โจ--log-size-maxโ Maximum size of the log file (in bytes). the cap on one file ๐--log-global-size-maxโ Maximum size of all log files combined (in bytes). the cap on the whole friend group ๐--log-tagโ Additional tag to use for logging. a lil nickname for ur logs ๐ท๏ธ--log-allowlist-dirโ Specifies allowed directories for log file creation. This option can be specified multiple times to allow multiple directories. When configured, log files can only be created within these allowed directories or their subdirectories. If not specified, log files can be created in any location. the VIP list for where logs are allowed to exist ๐๏ธ--log-labelโ Additional label to use for logging. The accepted format isLABEL=VALUE. Can be specified multiple times. Note thatLABELmust contain only uppercase letters, numbers and underscore character. so likeVIBE=IMMACULATEbut NOTvibe=immaculate, got it? ๐--no-container-partial-messageโ Do not setCONTAINER_PARTIAL_MESSAGE=truefor partial lines in journald logs. This prevents splitting of long log lines into multiple journal entries, which can be problematic for systems that parse structured logs like JSON. Only affects journald log driver. keeping long lines whole so the JSON girlies don't cry ๐ญ-n,--nameโ Container name. what u call it ๐ผ--no-new-keyringโ Do not create a new session keyring for the container. no new keys, we good ๐--no-pivotโ Do not usepivot_root. no pivot today, we're staying put ๐--no-sync-logโ Do not manually call sync on logs after container shutdown. skipping the last-minute save ๐พ-0,--persist-dirโ Persistent directory for a container that can be used for storing container data. its permanent little home ๐-p,--container-pidfileโ PID file for the initial pid inside of the container. the OG pid's address ๐-P,--conmon-pidfileโ PID file for the conmon process. conmon's own address, main character behavior ๐-r,--runtimeโ Path to store runtime data for the container. where the runtime keeps its stuff ๐--replace-listen-pidโ Replace listen PID if set for oci-runtime PID. swapping in the new one ๐--restoreโ Restore a container from a checkpoint. bringing it back from the dead, resurrection era ๐งโจ--runtime-argโ Additional arguments to pass to the runtime. Can be specified multiple times. extra args, stack 'em ๐--runtime-optโ Additional options to pass to the restore or exec command. Can be specified multiple times. more options, more fun ๐-s,--systemd-cgroupโ Enable systemd cgroup manager, rather than use the cgroupfs directly. letting systemd drive instead ๐--socket-dir-pathโ Location of container attach sockets. where the sockets hang out ๐๏ธ--sdnotify-socketโ Path to the host's sd-notify socket to relay messages to. passing notes to the host ๐--syncโ Keep the main conmon process as its child by only forking once. one fork only, we're keeping it close ๐ด--syslogโ Log to syslog (use with cgroupfs cgroup manager). old-school logging channel ๐ป-t,--terminalโ Allocate a pseudo-TTY. The default is false. When set to true, conmon will allocate a pseudo-tty and attach to the standard input of the container. This can be used, for example, to run a throwaway interactive shell. The default is false. (yes, the default is false โ it said it twice, so it MEANS it) ๐ฅ๏ธ-T,--timeoutโ Kill container after specified timeout in seconds. the deadline, bestie โฐ-u,--cuuidโ Specify the Container UUID to use. its government name ๐--versionโ Print the version and exit. tell me who u are then dip ๐
๐ฆ SEE ALSO ๐ฆ
podman(1), buildah(1), cri-o(1), crun(8), runc(8)
the whole squad, go say hi ๐
๐ HISTORY ๐
October 2020, Originally compiled by Dan Walsh dwalsh@redhat.com โจmailto:dwalsh@redhat.comโฉ โ thank u Dan, icon behavior ๐ซถ
and that's the whole page, bestie!! this lil slice of the System Manager's Manual is filed under User Commands for conmon(8) ๐
โจ ily, go monitor some containers ๐
๐ฆ where this page comes from
- alpine 3.24: conmon-doc 2.2.1-r0 ยท Apache-2.0
- fedora 43: conmon 2:2.2.1-2.fc43 ยท Apache-2.0
- fedora 44: conmon 2:2.2.1-2.fc44 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms