docker compose pull fails with non zero if it contains image that needs to be built (original) (raw)
docker compose pull fails with non zero if it contains image that needs to be built
that leads to a problem with my update chain:
docker-compose pull && docker-compose build && docker-compose up -d
Steps to reproduce the issue:
- compose file with two images, one which just is pulled, one with build section
- docker-compose pull && docker-compose build && docker-compose up -d
[+] Running 1/2
⠿ app Error 2.8s
⠿ db Pulled 1.4s
WARNING: Some service image(s) must be built from source by running:
docker compose build app
Error response from daemon: pull access denied for my/nextcloud, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
version: '3'
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb_read_only_compressed=OFF
app:
build:
context: ./
dockerfile: Dockerfile
image: my/nextcloud
links:
- db
Dockerfile:
FROM nextcloud:apache
RUN apt-get update && apt-get install -y --no-install-recommends smbclient && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/run/samba/msg.lock
Describe the results you received:
docker-compose pull fails with RC=18 and && commands are not run
Describe the results you expected:
docker-compose pull skips build image, returns true and && commands are run
Output of docker compose version
:
Docker Compose version 2.0.1
Output of docker info
:
Client:
Context: default
Debug Mode: false
Server:
Containers: 39
Running: 39
Paused: 0
Stopped: 0
Images: 276
Server Version: 20.10.9
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc version: v1.0.2-0-g52b36a2d
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.208-boot2docker
Operating System: Boot2Docker 20.10.9 (TCL 11.1)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 5.328GiB
Name: default
ID: ITSY:AOS3:IXMP:2MZO:7B5U:3EPB:NTL7:E3TU:PPCF:IRHI:5T6I:OOB7
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
provider=vmwarefusion
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Default Address Pools:
Base: 172.16.0.0/16, Size: 24
Additional environment details: