update README
This commit is contained in:
parent
85aaa391e2
commit
47386aaf91
1 changed files with 4 additions and 16 deletions
20
README.md
20
README.md
|
@ -36,32 +36,20 @@ cargo install --locked --git https://firefish.dev/firefish/firefish-cli.git
|
||||||
Using the `registry.firefish.dev/firefish/firefish-cli` container image, `fishctl ___` commands can be executed as
|
Using the `registry.firefish.dev/firefish/firefish-cli` container image, `fishctl ___` commands can be executed as
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -it --rm --volume "$(pwd)":/firefish \
|
docker run -it --rm --volume "$(pwd)":/firefish --network network_name \
|
||||||
registry.firefish.dev/firefish/firefish-cli \
|
registry.firefish.dev/firefish/firefish-cli \
|
||||||
fishctl ___
|
fishctl ___
|
||||||
|
|
||||||
# or
|
# or
|
||||||
|
|
||||||
podman run -it --rm --volume "$(pwd)":/firefish \
|
podman run -it --rm --volume "$(pwd)":/firefish --network network_name \
|
||||||
registry.firefish.dev/firefish/firefish-cli \
|
registry.firefish.dev/firefish/firefish-cli \
|
||||||
fishctl ___
|
fishctl ___
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are using a container network (which is typically the case if you using `docker-compose.yml` to run Firefish), you also have to specify the network name like this:
|
If you are using a container network (which is typically the case if you using `docker-compose.yml` to run Firefish), you can search for your network name by `docker network ls` or `podman network ls`.
|
||||||
|
|
||||||
```sh
|
If you want to use this in the host network, you should use `host` as the network name.
|
||||||
docker run -it --rm --network network_name --volume "$(pwd)":/firefish \
|
|
||||||
registry.firefish.dev/firefish/firefish-cli \
|
|
||||||
fishctl ___
|
|
||||||
|
|
||||||
# or
|
|
||||||
|
|
||||||
podman run -it --rm --network network_name --volume "$(pwd)":/firefish \
|
|
||||||
registry.firefish.dev/firefish/firefish-cli \
|
|
||||||
fishctl ___
|
|
||||||
```
|
|
||||||
|
|
||||||
You can search for your network name by `docker network ls` or `podman network ls`.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue