mirror of
https://github.com/containers/podman.git
synced 2025-06-01 17:17:47 +08:00
Fix up example description of podman-farm commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -239,14 +239,24 @@ Build only on farm nodes that match the given platforms.
|
|||||||
|
|
||||||
## EXAMPLES
|
## EXAMPLES
|
||||||
|
|
||||||
|
Build named image and manifest list using specified Containerfile with default farm:
|
||||||
```
|
```
|
||||||
$ podman farm build --local -t name -f /path/to/containerfile .
|
$ podman farm build --local -t name -f /path/to/containerfile .
|
||||||
|
```
|
||||||
|
|
||||||
|
Build named image and manifest list using the specified farm:
|
||||||
|
```
|
||||||
$ podman farm build --farm myfarm -t name .
|
$ podman farm build --farm myfarm -t name .
|
||||||
|
```
|
||||||
|
|
||||||
|
Build named image and manifest list using the specified farm, removing all images from farm nodes, after they are pushed to registry:
|
||||||
|
```
|
||||||
$ podman farm build --farm myfarm --cleanup -t name .
|
$ podman farm build --farm myfarm --cleanup -t name .
|
||||||
|
```
|
||||||
|
|
||||||
$ podman farm build --platforms arm64,amd64 --cleanup -t name .
|
Build named images and manifest list for specified platforms using default farm:
|
||||||
|
```
|
||||||
|
$ podman farm build --platforms arm64,amd64 -t name .
|
||||||
```
|
```
|
||||||
|
|
||||||
## SEE ALSO
|
## SEE ALSO
|
||||||
|
@ -15,11 +15,18 @@ connections from a farm via the *podman farm update* command.
|
|||||||
|
|
||||||
## EXAMPLE
|
## EXAMPLE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Create the specified farm:
|
||||||
|
```
|
||||||
|
$ podman farm create farm2
|
||||||
|
```
|
||||||
|
|
||||||
|
Create multiple farms:
|
||||||
```
|
```
|
||||||
$ podman farm create farm1 f37 f38
|
$ podman farm create farm1 f37 f38
|
||||||
|
|
||||||
$ podman farm farm2
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## SEE ALSO
|
## SEE ALSO
|
||||||
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**, **[podman-system-connection(1)](podman-system-connection.1.md)**, **[podman-system-connection-add(1)](podman-system-connection-add.1.md)**
|
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**, **[podman-system-connection(1)](podman-system-connection.1.md)**, **[podman-system-connection-add(1)](podman-system-connection-add.1.md)**
|
||||||
|
|
||||||
|
@ -26,12 +26,15 @@ Valid placeholders for the Go template listed below:
|
|||||||
| .ReadWrite | Indicates if this farm can be modified using the podman farm commands |
|
| .ReadWrite | Indicates if this farm can be modified using the podman farm commands |
|
||||||
|
|
||||||
## EXAMPLE
|
## EXAMPLE
|
||||||
|
|
||||||
|
List all farms:
|
||||||
```
|
```
|
||||||
$ podman farm list
|
$ podman farm list
|
||||||
Name Connections Default ReadWrite
|
Name Connections Default ReadWrite
|
||||||
farm1 [f38 f37] false true
|
farm1 [f38 f37] false true
|
||||||
farm2 [f37] true true
|
farm2 [f37] true true
|
||||||
```
|
```
|
||||||
|
|
||||||
## SEE ALSO
|
## SEE ALSO
|
||||||
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**
|
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**
|
||||||
|
|
||||||
|
@ -18,11 +18,17 @@ Delete one or more farms.
|
|||||||
Remove all farms.
|
Remove all farms.
|
||||||
|
|
||||||
## EXAMPLE
|
## EXAMPLE
|
||||||
|
|
||||||
|
Remove specified farm:
|
||||||
```
|
```
|
||||||
$ podman farm remove farm1
|
$ podman farm remove farm1
|
||||||
|
```
|
||||||
|
|
||||||
|
Remove all farms:
|
||||||
|
```
|
||||||
$ podman farm rm --all
|
$ podman farm rm --all
|
||||||
```
|
```
|
||||||
|
|
||||||
## SEE ALSO
|
## SEE ALSO
|
||||||
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**
|
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**
|
||||||
|
|
||||||
|
@ -25,13 +25,22 @@ Set the current farm as the default.
|
|||||||
Remove one or more connections from an existing farm.
|
Remove one or more connections from an existing farm.
|
||||||
|
|
||||||
## EXAMPLE
|
## EXAMPLE
|
||||||
|
|
||||||
|
Add two connections to specified farm:
|
||||||
```
|
```
|
||||||
$ podman farm update --add f35,f38 farm1
|
$ podman farm update --add f35,f38 farm1
|
||||||
|
```
|
||||||
|
|
||||||
|
Add connection to specified farm:
|
||||||
|
```
|
||||||
$ podman farm update --remove f35 farm1
|
$ podman farm update --remove f35 farm1
|
||||||
|
```
|
||||||
|
|
||||||
|
Change specified farm to be default:
|
||||||
|
```
|
||||||
$ podman farm update --default farm2
|
$ podman farm update --default farm2
|
||||||
```
|
```
|
||||||
|
|
||||||
## SEE ALSO
|
## SEE ALSO
|
||||||
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**
|
**[podman(1)](podman.1.md)**, **[podman-farm(1)](podman-farm.1.md)**
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user