When creating an nginx container on AliCloud ECS, the error is reported as above.
The solution:
In your Dockerfile, before running any apt commands, add the following line:
RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
This enables apt to run from the new sources.
It’s possible the debian:jesse
Docker image will be updated to work correctly in the near future, but until then this will allow you to keep working
Similar Posts:
- Linux Error: apt-get 404 not found [How to Solve]
- ProXmoX VE Update apt-get update Error [How to Solve]
- OMV openmediavault update management error: software source https://download.docker.com/linux/debian/ Buster’s option signed by contains conflicting value solutions
- apt-get: Could not resolve ‘archive.ubuntu.com’
- [Solved] Mac docker Build Image apt-get update Error: GPG Signature Error
- [Solved] Ubuntu sudo apt-get update Warning: Failed to fetch
- Docker-compose Run Error: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- [Solved] Docker rmi Error: Error response from daemon: conflict: unable to delete 6c20ffa54f86 (must be forced) – image is being used by stopped container 6e81c0d9b6ab
- [Solved] http: server gave HTTP response to HTTPS client
- [Solved] docker: Error response from daemon: could not select device driver “” with capabilities: [[gpu]].