mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
Merge pull request #6673 from ashley-cui/master
[CI:DOCS] Fix remote docs
This commit is contained in:
@ -79,11 +79,6 @@ function pub_pages() {
|
|||||||
$publisher $f
|
$publisher $f
|
||||||
done
|
done
|
||||||
|
|
||||||
# rename podman-remote.ext to podman.ext and copy
|
|
||||||
local remote=$(echo $TARGET/podman-remote.*)
|
|
||||||
local ext=${remote##*.}
|
|
||||||
cp -f $remote $TARGET/podman.$ext
|
|
||||||
|
|
||||||
for c in "container" "image" "pod" "volume" ""; do
|
for c in "container" "image" "pod" "volume" ""; do
|
||||||
local cmd=${c:+-$c}
|
local cmd=${c:+-$c}
|
||||||
for s in $($PODMAN $c --help | sed -n '/^Available Commands:/,/^Flags:/p' | sed -e '1d;$d' -e '/^$/d' | awk '{print $1}'); do
|
for s in $($PODMAN $c --help | sed -n '/^Available Commands:/,/^Flags:/p' | sed -e '1d;$d' -e '/^$/d' | awk '{print $1}'); do
|
||||||
@ -92,6 +87,26 @@ function pub_pages() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## rename renames podman-remote.ext to podman.ext, and fixes up contents to reflect change
|
||||||
|
function rename (){
|
||||||
|
if [[ "$PLATFORM" != linux ]]; then
|
||||||
|
local remote=$(echo $TARGET/podman-remote.*)
|
||||||
|
local ext=${remote##*.}
|
||||||
|
mv $remote $TARGET/podman.$ext
|
||||||
|
|
||||||
|
$(sed -i "s/podman\\\*-remote/podman/g" $TARGET/podman.$ext)
|
||||||
|
$(sed -i "s/A\ remote\ CLI\ for\ Podman\:\ //g" $TARGET/podman.$ext)
|
||||||
|
case $PLATFORM in
|
||||||
|
darwin|linux)
|
||||||
|
$(sed -i "s/Podman\\\*-remote/Podman\ for\ Mac/g" $TARGET/podman.$ext)
|
||||||
|
;;
|
||||||
|
windows)
|
||||||
|
$(sed -i "s/Podman\\\*-remote/Podman\ for\ Windows/g" $TARGET/podman.$ext)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
## walk the SOURCES for markdown sources
|
## walk the SOURCES for markdown sources
|
||||||
mkdir -p $TARGET
|
mkdir -p $TARGET
|
||||||
for s in $SOURCES; do
|
for s in $SOURCES; do
|
||||||
@ -101,3 +116,4 @@ for s in $SOURCES; do
|
|||||||
echo >&2 "Warning: $s does not exist"
|
echo >&2 "Warning: $s does not exist"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
rename
|
||||||
|
@ -132,14 +132,3 @@ the exit codes follow the `chroot` standard, see below:
|
|||||||
| [podman-unpause(1)](podman-unpause.1.md) | Unpause one or more containers. |
|
| [podman-unpause(1)](podman-unpause.1.md) | Unpause one or more containers. |
|
||||||
| [podman-version(1)](podman-version.1.md) | Display the Podman version information. |
|
| [podman-version(1)](podman-version.1.md) | Display the Podman version information. |
|
||||||
| [podman-volume(1)](podman-volume.1.md) | Manage Volumes. |
|
| [podman-volume(1)](podman-volume.1.md) | Manage Volumes. |
|
||||||
|
|
||||||
## FILES
|
|
||||||
|
|
||||||
**podman-remote.conf** (`$HOME/.config/containers/podman-remote.conf`)
|
|
||||||
|
|
||||||
The podman-remote.conf file is the default configuration file for the podman
|
|
||||||
remote client. It is in the TOML format. It is primarily used to keep track
|
|
||||||
of the user's remote connections.
|
|
||||||
|
|
||||||
## SEE ALSO
|
|
||||||
`podman-remote.conf(5)`
|
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
% podman-remote.conf(5)
|
|
||||||
|
|
||||||
## NAME
|
|
||||||
podman-remote.conf - configuration file for the podman remote client
|
|
||||||
|
|
||||||
## DESCRIPTION
|
|
||||||
The libpod.conf file is the default configuration file for all tools using
|
|
||||||
libpod to manage containers.
|
|
||||||
|
|
||||||
The podman-remote.conf file is the default configuration file for the podman
|
|
||||||
remote client. It is in the TOML format. It is primarily used to keep track
|
|
||||||
of the user's remote connections.
|
|
||||||
|
|
||||||
## CONNECTION OPTIONS
|
|
||||||
**destination** = ""
|
|
||||||
The hostname or IP address of the remote system
|
|
||||||
|
|
||||||
**username** = ""
|
|
||||||
The username to use when connecting to the remote system
|
|
||||||
|
|
||||||
**default** = bool
|
|
||||||
Denotes whether the connection is the default connection for the user. The default connection
|
|
||||||
is used when the user does not specify a destination or connection name to `podman`.
|
|
||||||
|
|
||||||
**port** = int
|
|
||||||
Use an alternative port for the ssh connections. The default port is 22.
|
|
||||||
|
|
||||||
**identity_file** = ""
|
|
||||||
Use an alternative location for the ssh private key
|
|
||||||
|
|
||||||
**ignore_hosts** = bool
|
|
||||||
Don't match the remote ssh host key with known hosts
|
|
||||||
|
|
||||||
|
|
||||||
## EXAMPLE
|
|
||||||
|
|
||||||
The following example depicts a configuration file with two connections. One of the connections
|
|
||||||
is designated as the default connection.
|
|
||||||
```
|
|
||||||
[connections]
|
|
||||||
[connections.host1]
|
|
||||||
destination = "host1"
|
|
||||||
username = "homer"
|
|
||||||
default = true
|
|
||||||
|
|
||||||
[connections.host2]
|
|
||||||
destination = "192.168.122.133"
|
|
||||||
username = "fedora"
|
|
||||||
port = 2222
|
|
||||||
```
|
|
||||||
|
|
||||||
## FILES
|
|
||||||
`/$HOME/.config/containers/podman-remote.conf`, default location for the podman remote
|
|
||||||
configuration file
|
|
||||||
|
|
||||||
## HISTORY
|
|
||||||
May 2019, Originally compiled by Brent Baude<bbaude@redhat.com>
|
|
Reference in New Issue
Block a user