6.3. config:edit, edit

download PDF


begins an editing session for a configuration. If the configuration does not exist a new configuration is created.


config:edit [ --help ] [ --force ] [[ -f ] | [ --use-file ]] { pid }


The config:edit command is the first step in editing a container configuration. It opens the configuration so that calls to the config:* editing commands will update the selected configuration. The edits made by the config:* editing commands are placed in a buffer associated with the selected configuration and not propagated to the container, or the file system, until the editing session is ended by the config:update command.
If you use the config:edit command before saving the changes to a configuration that is open for editing, the changes to the previously open configuration are abandoned. The pending edits cleared without being saved.


Table 6.3, “config:edit Arguments” describes the command's arguments.
Table 6.3. config:edit Arguments
--help Displays the online help for this command
--force Forces the editing of this configuration, even if another configuration was being edited
-f, --use-fileUse a filename instead of the PID to locate the configuration
pid The persistent identifier of the configuration
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.