natepichler
Dabbler
- Joined
- Feb 14, 2022
- Messages
- 11
I installed nginx in a docker and need to also install nano.
When I run apt-get update in the container, I get the following error:
I have tried updating the nameservers in resolv.conf to no avail.
Not sure where to go from here seeing as I can't install any packages.
Code:
docker run --name nginx --restart always --ip 192.168.0.95 nginx
When I run apt-get update in the container, I get the following error:
Code:
Err:1 http://security.debian.org/debian-security bullseye-security InRelease Temporary failure resolving 'security.debian.org' Err:2 http://deb.debian.org/debian bullseye InRelease Temporary failure resolving 'deb.debian.org' Err:3 http://deb.debian.org/debian bullseye-updates InRelease Temporary failure resolving 'deb.debian.org' Reading package lists... Done W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'security.debian.org' W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org' W: Some index files failed to download. They have been ignored, or old ones used instead.
I have tried updating the nameservers in resolv.conf to no avail.
Not sure where to go from here seeing as I can't install any packages.