Docker compose not completing
I get the following error trying to set up a docker compose container:
This is when running the command docker-compose up -d in the same directory as options.json and docker-compose.yaml
Traceback (most recent call last):
File "setup.py", line 1, in
I have the same problem
docker-compose up -d
Building copy_config [+] Building 0.1s (2/2) FINISHED => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2B 0.0s ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1628610394/Dockerfile: no such file or directory ERROR: Service 'copy_config' failed to build : Build failed
I workaround this with a new docker compose file: version: '3' services: hisense_ac: image: deiger/aircon:0.3.14 container_name: hisense_ac healthcheck: disable: true environment: - CONFIG_DIR=/config - OPTIONS_FILE=/config/options.json network_mode: host volumes: - /opt/hisense:/config
and then, copy the options.json to the /opt/hisense directory
I just got this installed last night, had the same errors but overcame them. I found the instructions very vague. I used /opt/hisense for the install and my docker compose is located at /opt. All the required files are listed here (https://github.com/deiger/AirCon). The instructions say that you only need the docker compose and options file, but you need more. I had to copy the Dockerfile, README.md, run.sh, setup.py files and the folder "aircon" to my /opt directory. my options.json is in /opt/hisense