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 is 1. (yes bestie, the default is literally 1) 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 is LABEL=VALUE. Can be specified multiple times. Note that LABEL must contain only uppercase letters, numbers and underscore character. so like VIBE=IMMACULATE but NOT vibe=immaculate, got it? ๐Ÿ” 
  • --no-container-partial-message โ€” Do not set CONTAINER_PARTIAL_MESSAGE=true for 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 use pivot_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