Hi!
Description of the issue
I recently updated docker and after update it seems that Dockerfile cannot use local images anymore. I have this instance:

Which is later used by another service in Dockerfile using FROM services_develop:staging. Prior update it was working just fine, now only option seems to be to create a local registry. Is this really intended?
Context information (for bug reports)
Output of docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.9.0
OpenSSL version: OpenSSL 1.1.1h 22 Sep 2020
/!\ If docker-compose version reports v2.0...` you're using the wrong repository, please report issues on Compose-CLI
Output of docker version
Client:
Cloud integration: 1.0.17
Version: 20.10.7
API version: 1.41
Go version: go1.16.4
Git commit: f0df350
Built: Wed Jun 2 11:56:23 2021
OS/Arch: darwin/arm64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.7
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: b0f5bc3
Built: Wed Jun 2 11:55:36 2021
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.4.6
GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d
runc:
Version: 1.0.0-rc95
GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output of docker-compose config
(Make sure to add the relevant -f and other flags)
networks:
default:
driver: bridge
pm_default:
external: true
name: pm_default
services:
build:
build:
args:
SRC_MOUNT_PATH: /srv/sites/services
context: /Users/xxx/Documents/Projects/sites/yyy/services/docker/build
depends_on:
develop:
condition: service_started
environment:
DEPLOYMENT_PROD_HOSTS: ''
DEPLOYMENT_PROD_KEY_FILENAME: ''
DEPLOYMENT_PROD_KEY_PASSPHRASE: ''
DEPLOYMENT_PROD_LOCAL_SCRIPTS_PATH: ''
DEPLOYMENT_PROD_REMOTE_SCRIPTS_PATH: ''
DEPLOYMENT_PROD_RUNTIME_PATH: /srv/sites/yyy/services
DEPLOYMENT_PROD_TEST_RUNTIME_PATH: /srv/sites/yyy/testing.services
DEPLOYMENT_PROD_TMP_PATH: /tmp
DEPLOYMENT_PROD_USERNAME: root
RUNTIME_PATH: /srv/sites/services/pm_services
SRC_MOUNT_PATH: /srv/sites/services
image: services_build:staging
networks:
default: null
volumes:
- /Users/xxx/Documents/Projects/sites/yyy/services:/srv/sites/services:cached
develop:
build:
args:
SRC_MOUNT_PATH: /srv/sites/services
context: /Users/xxx/Documents/Projects/sites/yyy/services/docker/develop
depends_on:
redisdb:
condition: service_started
environment:
DEPLOYMENT_PROD_HOSTS: ''
DEPLOYMENT_PROD_KEY_FILENAME: ''
DEPLOYMENT_PROD_KEY_PASSPHRASE: ''
DEPLOYMENT_PROD_LOCAL_SCRIPTS_PATH: ''
DEPLOYMENT_PROD_REMOTE_SCRIPTS_PATH: ''
DEPLOYMENT_PROD_RUNTIME_PATH: /srv/sites/yyy/services
DEPLOYMENT_PROD_TEST_RUNTIME_PATH: /srv/sites/yyy/testing.services
DEPLOYMENT_PROD_TMP_PATH: /tmp
DEPLOYMENT_PROD_USERNAME: root
RUNTIME_PATH: /srv/sites/services/pm_services
SRC_MOUNT_PATH: /srv/sites/services
image: services_develop:staging
networks:
default: null
pm_default: null
ports:
- published: 4100
target: 4100
- published: 4200
target: 4110
volumes:
- /Users/xxx/Documents/Projects/sites/yyy/services:/srv/sites/services:cached
redisdb:
image: redis:alpine
version: '3.9'
Steps to reproduce the issue
docker-compose up --build build
Observed result
Fails to run
Expected result
Container is run
Stacktrace / full error message
#2 [services_build:staging internal] load build definition from Dockerfile
#2 sha256:904e5663af5547b640ab36250d9303488863d83cb6ca4c0111b17700a843eec9
#2 transferring dockerfile: 337B done
#2 DONE 0.0s
#1 [services_develop:staging internal] load build definition from Dockerfile
#1 sha256:d8973824e1cc852c8a3ba858f1c282f2943a049f4c86b2cc88e4ecfb20912cb3
#1 transferring dockerfile: 860B done
#1 DONE 0.0s
#3 [services_develop:staging internal] load .dockerignore
#3 sha256:a577a2d1f67337b83d0055cf11cf3d65ec16157e002120d74886257da7875479
#3 transferring context: 2B done
#3 DONE 0.0s
#4 [services_develop:staging internal] load metadata for docker.io/library/debian:stable
#4 sha256:03abc9f10f935e7137bbfe987d86a0879bf4bcb2ca500f3919314c6aa058f2f8
#4 ...
#5 [services_build:staging internal] load .dockerignore
#5 sha256:a3a79252ae83d732c535c559ffb437f9be6ae841462892d5b0c084a22f5ebf2b
#5 transferring context: 2B done
#5 DONE 0.0s
#6 [services_build:staging internal] load metadata for docker.io/library/services_develop:staging
#6 sha256:0aabca4baec97ad783f7b602174718f61033d1eb5568a3e962ea3e70e39858bb
#6 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
#4 [services_develop:staging internal] load metadata for docker.io/library/debian:stable
#4 sha256:03abc9f10f935e7137bbfe987d86a0879bf4bcb2ca500f3919314c6aa058f2f8
#4 CANCELED
------
> [services_build:staging internal] load metadata for docker.io/library/services_develop:staging:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Additional information
Macbook Pro M1, MacOS 11.4.
Hi!
Description of the issue
I recently updated docker and after update it seems that Dockerfile cannot use local images anymore. I have this instance:
Which is later used by another service in Dockerfile using
FROM services_develop:staging. Prior update it was working just fine, now only option seems to be to create a local registry. Is this really intended?Context information (for bug reports)
Output of
docker-compose version/!\ If
docker-compose versionreports v2.0...` you're using the wrong repository, please report issues on Compose-CLIOutput of
docker versionOutput of
docker-compose config(Make sure to add the relevant
-fand other flags)Steps to reproduce the issue
docker-compose up --build buildObserved result
Fails to run
Expected result
Container is run
Stacktrace / full error message
Additional information
Macbook Pro M1, MacOS 11.4.