docker-compose up -d 
2...
3------
4 > [internal] load metadata for docker.io/library/python:3-onbuild:
5------
6failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:X: not found
7ERROR: Service 'myservice' failed to build : Build failed
I found in this post that if I ran the following lines of code in terminal before my compose command, then that would eliminate the first issue I have. 
1export DOCKER_BUILDKIT=0
2export COMPOSE_DOCKER_CLI_BUILD=0
3docker-compose up -d 
4
5ERROR: Service 'myservice' failed to build : no matching manifest for linux/arm64/v8 in the manifest list entries
So that second line of issue looks like it may have to do with my Mac M1 chip
1ERROR: Service 'myservice' failed to build : no matching manifest for linux/arm64/v8 in the manifest list entries
Adding the 'platform: linux/x86_64' to the following services seems to have worked. 
1version: '3'
2
3services:
4  myservice:
5    platform: linux/x86_64
6    container_name: myservice_container
7    build: ./myservice
8    volumes:
9      - ./myservice:/usr/src/app
10    ports:
11      - 8080:8080
 
No comments:
Post a Comment