Docker(Raspbian): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(8 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 ==


== Installation ==
Siehe auch: [[Systemd_(Linux)|systemd]]


<pre>
<pre>
curl -fsSL https://get.docker.com | sh
sudo systemctl status docker.service
</pre>
</pre>


Zeile 13: Zeile 37:
docker login -u <username> --password-stdin
docker login -u <username> --password-stdin
</pre>
</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 21: Zeile 65:




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

Aktuelle Version vom 27. August 2022, 13: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