From 47386aaf91ea33e566d75a5cca90ef6c3a04d2d4 Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 21 Jun 2024 04:54:27 +0900 Subject: [PATCH] update README --- README.md | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 461c30d..0dd5c14 100644 --- a/README.md +++ b/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 ```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