Open aik7 opened 2 years ago
Check the docker and docker-compose versions. docker --version docker-compose --version
Upgrade docker-compose to 1.28.5
sudo curl -L https://github.com/docker/compose/releases/download/1.28.5/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Reference: https://stackoverflow.com/questions/58155523/unable-to-give-network-name-in-docker-compose
How to install docker-compose in Raspberry Pi: https://dev.to/elalemanyo/how-to-install-docker-and-docker-compose-on-raspberry-pi-1mo
$ sudo docker-compose build --no-cache --force-rm
brsw uses an image, skipping
largeoffice uses an image, skipping
smalloffice uses an image, skipping
building1 uses an image, skipping
Building central
Sending build context to Docker daemon 88.57MB
Step 1/27 : FROM eclipsevolttron/volttron:v3.1 as volttron_base
v3.1: Pulling from eclipsevolttron/volttron
9b99af5931b3: Pull complete
b4cc503f69dd: Pull complete
3843803ad2a1: Pull complete
48c66dd18c7b: Pull complete
182fa5fed151: Pull complete
f1e366e64969: Pull complete
dfefa53182e5: Pull complete
7fc3e7cec1ac: Pull complete
7866574f6aad: Pull complete
c9be2583dd31: Pull complete
5dc39d748de1: Pull complete
50c4fb22bf91: Pull complete
Digest: sha256:961cd8932e1778d1fcd4e7025109cb9d1cdcbb8fc2ea345a80138697596f9ba7
Status: Downloaded newer image for eclipsevolttron/volttron:v3.1
---> 2b123514b162
Step 2/27 : COPY ./core/bootstart.sh /startup/bootstart.sh
---> 3177b304d195
Step 3/27 : RUN chmod +x /startup/*
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
---> Running in 748bea648fd1
standard_init_linux.go:219: exec user process caused: exec format error
Removing intermediate container 748bea648fd1
The command 'bash -c chmod +x /startup/*' returned a non-zero code: 1
ERROR: Service 'central' failed to build : Build failed