diff --git a/README.md b/README.md index 7e413fa7..ad73a5e6 100644 --- a/README.md +++ b/README.md @@ -82,15 +82,15 @@ k6 run -e BASE_URL=https://acmecorp.dev:3333 01.basic.js
- Using the k6 Docker image + Using k6 Docker image If you want to use the [k6 Docker image](https://hub.docker.com/r/grafana/k6) to run k6, you need to run the Quickpizza and k6 containers within the same network. First, create a Docker network. Then, run Quickpizza, assigning a hostname and connecting to the created network. ```bash - docker network create quickpizza_network - docker run --network=quickpizza_network --hostname=quickpizza --rm -it -p 3333:3333 ghcr.io/grafana/quickpizza-local:latest + docker network create quickpizza_network + docker run --network=quickpizza_network --hostname=quickpizza --rm -it -p 3333:3333 ghcr.io/grafana/quickpizza-local:latest ``` Next, you can use the k6 Docker image to execute the k6 test. Run the k6 Docker container within the same network (`quickpizza_network`) and pass the `BASE_URL` environment variable with the value of the Quickpizza container's hostname as follows: