udocker: Unable to Pull Images with uDocker in AWS
Hi,
TL;DR; Starting today, uDocker yields errors when pulling any image from Docker Hub, when it is run in AWS , either in an EC2 instance (regardless of the OS), or in AWS Lambda.
In order to reproduce this issue:
- Run an EC2 instance (we have tried Amazon Linux and Ubuntu 16.04 with similar results).
- Install uDocker
- Pull a Docker image (the same result is obtained regardless of the image), e.g.
udocker pull ubuntu:16.04
Downloading layer: sha256:50aff78429b146489e8a6cb9334d93a6d81d5de2edc4fbf5e2d4d9253625753e
Error: in download: HTTP/1.1 400 Bad Request
Downloading layer: sha256:f6d82e297bce031a3de1fa8c1587535e34579abce09a61e37f5a225a8667422f
Error: in download: HTTP/1.1 400 Bad Request
Downloading layer: sha256:275abb2c8a6f1ce8e67a388a11f3cc014e98b36ff993a6ed1cc7cd6ecb4dd61b
...
Pulling the image using Docker from that EC2 instance works perfectly. Pulling the image from uDocker running on an on-premises machine, i.e. out of AWS, also works perfectly. Therefore, the issue must be related to the combination of running uDocker in AWS, something that was working fine until today.
Do you have any idea of what could be going on?
Greetings.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 21 (6 by maintainers)
Commits related to this issue
- Fix #110 — committed to grycap/udocker by micafer 7 years ago
- Fix #110 — committed to grycap/udocker by micafer 7 years ago
- Fix #110 for curl and improve code — committed to grycap/udocker by micafer 7 years ago
probably connected to what pckorhon wrote but: if I build my Docker image locally and then push it to Docker Hub, I seem to have NO problem to pull it via udocker. It fails (though still not in all python versions), if the Docker image is created directly at Docker Hub via automatic build. exactly same Dockerfile is used in both cases. devel branch of udocker. local build of Docker image happens in Ubuntu 16.04, later pull to RHEL7.