Closed saheredelgadom closed 1 year ago
Docker had internet connection problems
It was solved like this:
{ "dns": ["1.1.1.1", "8.8.8.8"] }
we have to make the link like this: ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf which is really the dns used by the network.
with this script: pkill docker iptables -t nat -F ifconfig docker0 down brctl delbr docker0 docker -d
service docker restart
docker system prune
$ docker-compose build --build-arg TARGETARCH=amd64 $ docker-compose up
Go to https://127.0.0.1/ Login with any of users created admin/P3t3r3p0rt (administrator) and viewer/v13w3r (viewer) or the user credentials configured in the configuration file
docker-compose build --build-arg TARGETARCH=amd64 nginx uses an image, skipping Building petereport Sending build context to Docker daemon 123.4MB Step 1/29 : FROM ubuntu:20.04 ---> 3bc6e9f30f51 Step 2/29 : ENV PYTHONUNBUFFERED 1 ---> Using cache ---> 83ed05e8b764 Step 3/29 : ENV PYTHONDONTWRITEBYTECODE 1 ---> Using cache ---> a0c72f9ff857 Step 4/29 : ARG DEBIAN_FRONTEND=noninteractive ---> Using cache ---> a13852907155 Step 5/29 : RUN apt-get -y update ---> Using cache ---> e63bc44a5fd8 Step 6/29 : RUN apt-get -y upgrade ---> Using cache ---> 286bc59a1158 Step 7/29 : RUN apt install locales locales-all -y ---> Running in 05b8c8eb26ed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists... Building dependency tree... Reading state information... Package locales is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
Package locales-all is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'locales' has no installation candidate E: Package 'locales-all' has no installation candidate The command '/bin/sh -c apt install locales locales-all -y' returned a non-zero code: 100 ERROR: Service 'petereport' failed to build : Build failed
My operacional system is Ubuntu 22.04
You can help me, please????