Docker Community Forums

Share and learn in the Docker community.

Cannot download Alpine packages

(Kodi68) #1

Expected behavior

Alpine based image is able to download packages. This works fine side-by-side with Docker running in a VirtualBox VM on the same Mac:

[root@centos65-docker]docker run -i -t python:2-alpine /bin/ash
Unable to find image 'python:2-alpine' locally
2-alpine: Pulling from python
9b7301678506: Pull complete 
06984fada629: Pull complete 
cbd9326b4af3: Pull complete 
3cf50e26062b: Pull complete 
e48aee5d057b: Pull complete 
18d925596bc2: Pull complete 
2dd2f82d91e3: Pull complete 
Digest: sha256:0b202de73b1e01b2d8c626647fe0bf388e2963bdc1bda85fea7c74522d4a8228
Status: Downloaded newer image for python:2-alpine
/ # apk update
v3.4.1-15-g77d0563 []
v3.4.0-75-g8d1dc52 []
OK: 5959 distinct packages available

Actual behavior

apk update fails (as do any apk commands)

[jake@jake-MBP]docker run -i -t python:2-alpine /bin/ash
/ # apk update
ERROR: remote server returned error (try 'apk update')
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
ERROR: remote server returned error (try 'apk update')
WARNING: Ignoring APKINDEX.a2e6dac0.tar.gz: No such file or directory
2 errors; 18 distinct packages available

Oddly enough, downloading the file in question directly actually works from this Docker for Mac container:

/ # wget
Connecting to (
APKINDEX.tar.gz      100% |******************************|   655k  0:00:00 ETA


  • the output of:

    • Moby Menu > Diagnose & Feedback on OSX
      Docker for Mac: version: mac-v1.12.0-beta17
      OS X: version 10.10.5 (build: 14F1713)
      logs: /tmp/20160706-213723.tar.gz
      [OK] docker-cli
      [OK] app
      [OK] menubar
      [OK] virtualization
      [OK] system
      [OK] osxfs
      [OK] db
      [OK] slirp
      [OK] moby-console
      [OK] logs
      [OK] vmnetd
      [OK] env
      [OK] moby
      [OK] driver.amd64-linux
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )
    System Version: OS X 10.10.5 (14F1713)
    Kernel Version: Darwin 14.5.0

Steps to reproduce the behavior

  1. Download/Install Docker for Mac
  2. docker run -i -t python:2-alpine /bin/ash (I tried sudo as well)
  3. apk update