Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/oci-runtime-tool/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,11 +623,11 @@ func parseBindMount(s string) (string, string, []string, error) {
case 3:
source, dest, options = bparts[0], bparts[1], strings.Split(bparts[2], ":")
default:
return source, dest, options, fmt.Errorf("--bind should have format src:dest[:options...]")
return source, dest, options, fmt.Errorf("--mount-bind should have format src:dest[:options...]")
}

if source == "" || dest == "" {
return source, dest, options, fmt.Errorf("--bind should have format src:dest[:options...]")
return source, dest, options, fmt.Errorf("--mount-bind should have format src:dest[:options...]")
}
return source, dest, options, nil
}
Expand Down
2 changes: 1 addition & 1 deletion completions/bash/oci-runtime-tool
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ _oci-runtime-tool_generate() {
return
;;

--rootfs|--tmpfs|--bind|--cwd)
--rootfs-path|--tmpfs|--mount-bind|--process-cwd)
case "$cur" in
*:*)
# TODO somehow do _filedir for stuff inside the image, if it's already specified (which is also somewhat difficult to determine)
Expand Down
2 changes: 1 addition & 1 deletion man/oci-runtime-tool-generate.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ tmpfs directories on /generate and /tmp.
If you want messages that are logged in your container to show up in the host's
syslog/journal then you should bind mount the /dev/log directory as follows.

$ oci-runtime-tool generate --bind /dev/log:/dev/log --rootfs-path /var/lib/containers/fedora --args bash
$ oci-runtime-tool generate --mount-bind /dev/log:/dev/log --rootfs-path /var/lib/containers/fedora --args bash

From inside the container you can test this by sending a message to the log.

Expand Down