Docker: Unterschied zwischen den Versionen

Aus Thoms Wiki
Zur Navigation springenZur Suche springen
Die Seite wurde neu angelegt: „== Lose Notizen und Links == * https://www.kubecost.com/kubernetes-devops-tools/traefik-vs-nginx/ * https://doc.traefik.io/traefik/https/acme/ Kategorie:D…“
 
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 4: Zeile 4:
* https://doc.traefik.io/traefik/https/acme/
* https://doc.traefik.io/traefik/https/acme/


== apt-get delivers error "Hash sum mismatch" ==
Create a file called `badproxy` with these lines:
Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy    true;
And then add a line to your Dockerfile to copy it into the apt config folder:
COPY ./badproxy /etc/apt/apt.conf.d/99fixbadproxy
''Alternative'' - one single command in Dockerfile:
# Configure apt to avoid Hash Sum mismatch
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::BrokenProxy    true;" >> /etc/apt/apt.conf.d/99custom
see [https://forums.docker.com/t/hash-sum-mismatch-writing-more-data-as-expected/45940/2 forums.docker.com]
== htpasswd ==
docker run --rm httpd htpasswd -nb info geheim
docker run --rm httpd htpasswd -nbBC 10 info geheim
für die Parameter von htpasswd siehe https://httpd.apache.org/docs/2.4/programs/htpasswd.html


[[Kategorie:Docker]]
[[Kategorie:Docker]]

Aktuelle Version vom 2. Januar 2025, 20:33 Uhr

Lose Notizen und Links

apt-get delivers error "Hash sum mismatch"

Create a file called `badproxy` with these lines:

Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy    true;

And then add a line to your Dockerfile to copy it into the apt config folder:

COPY ./badproxy /etc/apt/apt.conf.d/99fixbadproxy

Alternative - one single command in Dockerfile:

# Configure apt to avoid Hash Sum mismatch
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::BrokenProxy    true;" >> /etc/apt/apt.conf.d/99custom

see forums.docker.com

htpasswd

docker run --rm httpd htpasswd -nb info geheim
docker run --rm httpd htpasswd -nbBC 10 info geheim

für die Parameter von htpasswd siehe https://httpd.apache.org/docs/2.4/programs/htpasswd.html