Skip to content

WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/main: Permission denied #741

Open

Description

@otonoton

Has this issue been opened before?

  • It is not in the FAQ, I checked.
  • It is not in the issues, I searched.

Describe the bug

Trying to build the download profile fails with Permission denied, even when running as root. Docker daemon is also running as root.

root@box# docker compose --profile download up --build
[+] Building 126.7s (6/8)                                                                                                                                                                                                                                                               docker:default
 => [download internal] load build definition from Dockerfile                                                                                                                                                                                                                                     0.1s
 => => transferring dockerfile: 185B                                                                                                                                                                                                                                                              0.0s
 => [download internal] load metadata for docker.io/library/bash:alpine3.19                                                                                                                                                                                                                       2.5s
 => [download internal] load .dockerignore                                                                                                                                                                                                                                                        0.1s
 => => transferring context: 2B                                                                                                                                                                                                                                                                   0.0s
 => CACHED [download 1/4] FROM docker.io/library/bash:alpine3.19@sha256:890897682a8025c1e178b5ec6126b3b532ad8535f1e81dbf60bc2b7300b1bcf8                                                                                                                                                          0.0s
 => [download internal] load build context                                                                                                                                                                                                                                                        1.1s
 => => transferring context: 3.15kB                                                                                                                                                                                                                                                               0.0s
 => ERROR [download 2/4] RUN apk update && apk add parallel aria2                                                                                                                                                                                                                               123.5s
------                                                                                                                                                                                                                                                                                                 
 > [download 2/4] RUN apk update && apk add parallel aria2:                                                                                                                                                                                                                                            
1.241 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz                                                                                                                                                                                                                    
62.00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz                                                                                                                                                                                                               
62.00 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/main: Permission denied
123.4 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/community: Permission denied
123.4 4 unavailable, 0 stale; 18 distinct packages available
------
failed to solve: process "/bin/sh -c apk update && apk add parallel aria2" did not complete successfully: exit code: 4

No proxy, VPN, firewall or other known network issues. Internet access is working normally on the box.

Hardware / Software

  • OS: Ubuntu
  • OS version: 22.04.5 LTS
  • Docker Version: 27.3.1
  • Docker compose version: v2.29.7
  • Repo version: from master
  • RAM: 128GB
  • GPU/VRAM: NVIDIA RTX 3070 Ti

Steps to Reproduce

  1. Clone repo from master
  2. Run docker compose --profile download up --build
  3. Build fails with "Permission denied" errors

Activity

  1. Buuuntyyy commented on Nov 7, 2024

    @Buuuntyyy

    I have exactly the same error in v3.18. Unable to solve for 3 days. Let's get in touch

  2. Saltsmart commented on Mar 16, 2025

    @Saltsmart

    same issue here, but with temporary error not permission denied:

    Compose now can delegate build to bake for better performances
    Just set COMPOSE_BAKE=true
    [+] Building 11.8s (6/8)                                                                                                             docker:default
     => [download internal] load build definition from Dockerfile                                                                                  0.0s
     => => transferring dockerfile: 185B                                                                                                           0.0s
     => [download internal] load metadata for docker.io/library/bash:alpine3.19                                                                    1.5s
     => [download internal] load .dockerignore                                                                                                     0.0s
     => => transferring context: 2B                                                                                                                0.0s
     => CACHED [download 1/4] FROM docker.io/library/bash:alpine3.19@sha256:890897682a8025c1e178b5ec6126b3b532ad8535f1e81dbf60bc2b7300b1bcf8       0.0s
     => [download internal] load build context                                                                                                     0.0s
     => => transferring context: 3.15kB                                                                                                            0.0s
     => ERROR [download 2/4] RUN apk update && apk add parallel aria2                                                                             10.2s
    ------                                                                                                                                              
     > [download 2/4] RUN apk update && apk add parallel aria2:                                                                                         
    0.134 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz                                                                 
    5.140 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz                                                            
    5.140 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/main: temporary error (try again later)
    10.15 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/community: temporary error (try again later)
    10.15 4 unavailable, 0 stale; 18 distinct packages available
    ------
    failed to solve: process "/bin/sh -c apk update && apk add parallel aria2" did not complete successfully: exit code: 4
    
  3. CandleCoder commented on Sep 22, 2025

    @CandleCoder

    Same issue in year 2025 as well Docker version 28.4.0, build d8eb465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions