update README

This commit is contained in:
naskya 2024-06-21 04:54:27 +09:00
parent 85aaa391e2
commit 47386aaf91
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -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
```sh
docker run -it --rm --volume "$(pwd)":/firefish \
docker run -it --rm --volume "$(pwd)":/firefish --network network_name \
registry.firefish.dev/firefish/firefish-cli \
fishctl ___
# or
podman run -it --rm --volume "$(pwd)":/firefish \
podman run -it --rm --volume "$(pwd)":/firefish --network network_name \
registry.firefish.dev/firefish/firefish-cli \
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
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`.
If you want to use this in the host network, you should use `host` as the network name.
## Usage