Docker(Raspbian): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{note|Noch in Bearbeitung}}
== Installation ==


<pre>
curl -fsSL https://get.docker.com | sh
</pre>
=== Docker ohne root ===
==== nachträglich ====
<pre>
sudo usermod -aG docker $USER
newgrp docker
</pre>
[https://u-labs.de/portal/docker-auf-dem-raspberry-pi-installieren-erste-container-starten-einfach-erklaert/ https://u-labs.de/portal/docker-auf-dem-raspberry-pi-installieren-erste-container-starten-einfach-erklaert/]
==== direkte Installation ====
{{note|Noch nicht getestet:}}
<pre>
curl -fsSL https://get.docker.com/rootless | sh
</pre>
== Service ==
Siehe auch: [[Systemd_(Linux)|systemd]]
<pre>
sudo systemctl status docker.service
</pre>
== Login ==
<pre>
docker login -u <username> --password-stdin
</pre>
== Hello World ==
<pre>
sudo docker run arm64v8/hello-world
</pre>
== Probleme ==
=== Error response from daemon: pull access denied for armhf/hello-worlds, repository does not exist or may require 'docker login': denied: requested access to the resource is denied ===
<code>armhf</code> is deprecated, use <code>arm64v8</code> instead:
<pre>
sudo docker run arm64v8/<image>
</pre>
==== Links ====
[https://github.com/docker-library/official-images#architectures-other-than-amd64 https://github.com/docker-library/official-images#architectures-other-than-amd64]


== Links ==
== Links ==
Zeile 9: Zeile 65:




Zurück zu [[Raspbian#Allgemein|Raspbian]]
Zurück zu [[Raspbian#Allgemein|Raspbian]], [[Docker#Raspbian|Docker]]

Aktuelle Version vom 27. August 2022, 12:05 Uhr

Installation

curl -fsSL https://get.docker.com | sh

Docker ohne root

nachträglich

sudo usermod -aG docker $USER
newgrp docker

https://u-labs.de/portal/docker-auf-dem-raspberry-pi-installieren-erste-container-starten-einfach-erklaert/

direkte Installation

Noch nicht getestet:

curl -fsSL https://get.docker.com/rootless | sh

Service

Siehe auch: systemd

sudo systemctl status docker.service

Login

docker login -u <username> --password-stdin

Hello World

sudo docker run arm64v8/hello-world

Probleme

Error response from daemon: pull access denied for armhf/hello-worlds, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

armhf is deprecated, use arm64v8 instead:

sudo docker run arm64v8/<image>

Links

https://github.com/docker-library/official-images#architectures-other-than-amd64

Links

https://www.ionos.at/digitalguide/server/konfiguration/raspberry-pi-docker/

https://withblue.ink/2019/07/13/yes-you-can-run-docker-on-raspbian.html


Zurück zu Raspbian, Docker