Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose help please #23

Open
okridgway opened this issue May 13, 2023 · 1 comment
Open

Docker-compose help please #23

okridgway opened this issue May 13, 2023 · 1 comment

Comments

@okridgway
Copy link

I'm having trouble getting things to work, any help you could provide would be much appreciated.

Here's my file structure:

- homeassistant
- mosquitto
- amridm2mqtt
    - amridm2mqtt
    - Dockerfile
    - messagetypes.py
    - settings_docker.py
- compose.yml

My compose.yml contains the following related to amridm2mqtt:


  amridm2mqtt:
    container_name: meters
    build: amridm2mqtt
    restart: unless-stopped
    privileged: true
    volumes:
      - /dev/bus/usb:/dev/bus/usb
    environment:
      - WATCHED_METERS=762546086
      - READINGS_PER_HOUR=4
      - MQTT_HOST=mqtt
      - MQTT_PORT=1883
    depends_on:
      - mosquitto

But I keep getting this error:
ERROR: for amridm2mqtt Cannot start service amridm2mqtt: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/amridm2mqtt/amridm2mqtt": stat /amridm2mqtt/amridm2mqtt: no such file or directory: unknown

Where am I going wrong?

@okridgway
Copy link
Author

I have no idea how I fixed it, but it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant