This message was deleted.
# rancher-desktop
a
This message was deleted.
g
Copy code
# docker-compose.yml
version: '3'

services:
  master:
    image: locustio/locust
    ports:
     - "8089:8089"
    volumes:
      - ./:/mnt/locust
    command: -f /mnt/locust/locustfile.py --master -H <http://master:8089>
  
  worker:
    image: locustio/locust
    volumes:
      - ./:/mnt/locust
    command: -f /mnt/locust/locustfile.py --worker --master-host master
Copy code
# locustfile.py
from locust import HttpUser, task

class HelloWorldUser(HttpUser):
    @task
    def hello_world(self):
        self.client.get("/hello")
r
The problem to be with the bind mount. Currently, Rancher Desktop allows creating bind mounts only on
/Users/$USER
on macOS. However, you can change this behavior via provisioning scripts. You can refer to an example provided in the thread below: https://github.com/rancher-sandbox/rancher-desktop/issues/1209#issuecomment-1370181132
However, I am wondering how it worked on your colleagues machines. Are they using provisioning scripts by any chance to allow creating bind mounts on folders other than /Users/$USER ?
g
It turned out I was running it from /users/$USER/ and not /Users/$USER/