Hi,
anyone using a Raspberry Pi Zero 2 W for running Teddycloud 0.4.3?
I was able to prepare the Pi Zero 2 to have docker and docker compose, running docker compose up -d also seems to wortk fine, but if i than try to list the running container, it seems like the Pi Zero 2 runs out of memory? So no response on putty…
this is the complete history after flashing the sd card with 64bit Raspberry PI OS Lite
pi@teddycloud:~ $ sudo apt update && sudo apt upgrade
Err:1 http://archive.raspberrypi.org/debian bullseye InRelease
Temporary failure resolving 'archive.raspberrypi.org'
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [48 .4 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main arm64 Pa ckages [266 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main armhf Pa ckages [267 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main Translat ion-en [175 kB]
Fetched 801 kB in 13s (61.6 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
13 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/bullseye/InReleas e Temporary failure resolving 'archive.raspberrypi.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
bsdextrautils bsdutils eject fdisk libblkid1 libfdisk1 libmount1
libsmartcols1 libuuid1 libwbclient0 mount rfkill util-linux
13 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,100 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org/debian-security bullseye-security/main arm64 bs dutils arm64 1:2.36.1-8+deb11u2 [145 kB]
Get:2 http://security.debian.org/debian-security bullseye-security/main arm64 li bblkid1 arm64 2.36.1-8+deb11u2 [187 kB]
Get:3 http://security.debian.org/debian-security bullseye-security/main arm64 li buuid1 arm64 2.36.1-8+deb11u2 [83.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main arm64 li bfdisk1 arm64 2.36.1-8+deb11u2 [224 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main arm64 li bmount1 arm64 2.36.1-8+deb11u2 [203 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main arm64 li bsmartcols1 arm64 2.36.1-8+deb11u2 [152 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main arm64 fd isk arm64 2.36.1-8+deb11u2 [186 kB]
Get:8 http://security.debian.org/debian-security bullseye-security/main arm64 ut il-linux arm64 2.36.1-8+deb11u2 [1,097 kB]
Get:9 http://security.debian.org/debian-security bullseye-security/main arm64 mo unt arm64 2.36.1-8+deb11u2 [182 kB]
Get:10 http://security.debian.org/debian-security bullseye-security/main arm64 b sdextrautils arm64 2.36.1-8+deb11u2 [142 kB]
Get:11 http://security.debian.org/debian-security bullseye-security/main arm64 l ibwbclient0 arm64 2:4.13.13+dfsg-1~deb11u6 [309 kB]
Get:12 http://security.debian.org/debian-security bullseye-security/main arm64 e ject arm64 2.36.1-8+deb11u2 [102 kB]
Get:13 http://security.debian.org/debian-security bullseye-security/main arm64 r fkill arm64 2.36.1-8+deb11u2 [87.7 kB]
Fetched 3,100 kB in 14s (217 kB/s)
Reading changelogs... Done
(Reading database ... 37782 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.36.1-8+deb11u2_arm64.deb ...
Unpacking bsdutils (1:2.36.1-8+deb11u2) over (1:2.36.1-8+deb11u1) ...
Setting up bsdutils (1:2.36.1-8+deb11u2) ...
(Reading database ... 37782 files and directories currently installed.)
Preparing to unpack .../libblkid1_2.36.1-8+deb11u2_arm64.deb ...
Unpacking libblkid1:arm64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Setting up libblkid1:arm64 (2.36.1-8+deb11u2) ...
(Reading database ... 37782 files and directories currently installed.)
Preparing to unpack .../libuuid1_2.36.1-8+deb11u2_arm64.deb ...
Unpacking libuuid1:arm64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Setting up libuuid1:arm64 (2.36.1-8+deb11u2) ...
(Reading database ... 37782 files and directories currently installed.)
Preparing to unpack .../libfdisk1_2.36.1-8+deb11u2_arm64.deb ...
Unpacking libfdisk1:arm64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Preparing to unpack .../libmount1_2.36.1-8+deb11u2_arm64.deb ...
Unpacking libmount1:arm64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Setting up libmount1:arm64 (2.36.1-8+deb11u2) ...
(Reading database ... 37782 files and directories currently installed.)
Preparing to unpack .../libsmartcols1_2.36.1-8+deb11u2_arm64.deb ...
Unpacking libsmartcols1:arm64 (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Setting up libsmartcols1:arm64 (2.36.1-8+deb11u2) ...
(Reading database ... 37782 files and directories currently installed.)
Preparing to unpack .../fdisk_2.36.1-8+deb11u2_arm64.deb ...
Unpacking fdisk (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Preparing to unpack .../util-linux_2.36.1-8+deb11u2_arm64.deb ...
Unpacking util-linux (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Setting up util-linux (2.36.1-8+deb11u2) ...
fstrim.service is a disabled or a static unit not running, not starting it.
(Reading database ... 37782 files and directories currently installed.)
Preparing to unpack .../mount_2.36.1-8+deb11u2_arm64.deb ...
Unpacking mount (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Preparing to unpack .../bsdextrautils_2.36.1-8+deb11u2_arm64.deb ...
Unpacking bsdextrautils (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Preparing to unpack .../libwbclient0_2%3a4.13.13+dfsg-1~deb11u6_arm64.deb ...
Unpacking libwbclient0:arm64 (2:4.13.13+dfsg-1~deb11u6) over (2:4.13.13+dfsg-1~d eb11u5) ...
Preparing to unpack .../eject_2.36.1-8+deb11u2_arm64.deb ...
Unpacking eject (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Preparing to unpack .../rfkill_2.36.1-8+deb11u2_arm64.deb ...
Unpacking rfkill (2.36.1-8+deb11u2) over (2.36.1-8+deb11u1) ...
Setting up bsdextrautils (2.36.1-8+deb11u2) ...
Setting up libwbclient0:arm64 (2:4.13.13+dfsg-1~deb11u6) ...
Setting up eject (2.36.1-8+deb11u2) ...
Setting up rfkill (2.36.1-8+deb11u2) ...
Setting up libfdisk1:arm64 (2.36.1-8+deb11u2) ...
Setting up mount (2.36.1-8+deb11u2) ...
Setting up fdisk (2.36.1-8+deb11u2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u8) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.69) ...
pi@teddycloud:~ $ sudo apt-get purge supervisor # removes everying including con fig files
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'supervisor' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@teddycloud:~ $ sudo apt-get purge nginx nginx-common # removes everying inclu ding config files
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'nginx' is not installed, so not removed
Package 'nginx-common' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@teddycloud:~ $ sudo apt remove docker-ce*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'docker-ce-cli' for glob 'docker-ce*'
Note, selecting 'docker-ce' for glob 'docker-ce*'
Note, selecting 'docker-ce-rootless-extras' for glob 'docker-ce*'
Package 'docker-ce' is not installed, so not removed
Package 'docker-ce-cli' is not installed, so not removed
Package 'docker-ce-rootless-extras' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@teddycloud:~ $ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@teddycloud:~ $ curl -sSL https://get.docker.com | sh
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b 8de
+ sudo -E sh -c apt-get update -qq >/dev/null
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/bullseye/InReleas e Temporary failure resolving 'archive.raspberrypi.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
+ sudo -E sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transp ort-https ca-certificates curl >/dev/null
+ sudo -E sh -c install -m 0755 -d /etc/apt/keyrings
+ sudo -E sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sudo -E sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sudo -E sh -c echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.gpg] ht tps://download.docker.com/linux/debian bullseye stable" > /etc/apt/sources.list. d/docker.list
+ sudo -E sh -c apt-get update -qq >/dev/null
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/bullseye/InReleas e Temporary failure resolving 'archive.raspberrypi.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
+ sudo -E sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras dock er-buildx-plugin >/dev/null
+ sudo -E sh -c docker version
Client: Docker Engine - Community
Version: 26.0.0
API version: 1.45
Go version: go1.21.8
Git commit: 2ae903e
Built: Wed Mar 20 15:18:07 2024
OS/Arch: linux/arm64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.0.0
API version: 1.45 (minimum version 1.24)
Go version: go1.21.8
Git commit: 8b79278
Built: Wed Mar 20 15:18:07 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
================================================================================
To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:
dockerd-rootless-setuptool.sh install
Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.
To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/
WARNING: Access to the remote API on a privileged Docker daemon is equivalent
to root access on the host. Refer to the 'Docker daemon attack surface'
documentation for details: https://docs.docker.com/go/attack-surface/
================================================================================
pi@teddycloud:~ $ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-04-05 13:05:14 CEST; 44s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 2828 (dockerd)
Tasks: 10
CPU: 2.253s
CGroup: /system.slice/docker.service
└─2828 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Apr 05 13:05:07 teddycloud systemd[1]: Starting Docker Application Container Engine...
Apr 05 13:05:10 teddycloud dockerd[2828]: time="2024-04-05T13:05:10.878020725+02:00" level=info msg="Starting up"
Apr 05 13:05:12 teddycloud dockerd[2828]: time="2024-04-05T13:05:12.183049480+02:00" level=info msg="Loading containers: start."
Apr 05 13:05:13 teddycloud dockerd[2828]: time="2024-04-05T13:05:13.523509371+02:00" level=info msg="Loading containers: done."
Apr 05 13:05:13 teddycloud dockerd[2828]: time="2024-04-05T13:05:13.730158855+02:00" level=warning msg="WARNING: No memory limit support"
Apr 05 13:05:13 teddycloud dockerd[2828]: time="2024-04-05T13:05:13.730297606+02:00" level=warning msg="WARNING: No swap limit support"
Apr 05 13:05:13 teddycloud dockerd[2828]: time="2024-04-05T13:05:13.730490213+02:00" level=info msg="Docker daemon" commit=8b79278 containerd-snapshotter=false storage-driver=overlay2 version=26.0.0
Apr 05 13:05:13 teddycloud dockerd[2828]: time="2024-04-05T13:05:13.740585947+02:00" level=info msg="Daemon has completed initialization"
Apr 05 13:05:14 teddycloud systemd[1]: Started Docker Application Container Engine.
Apr 05 13:05:14 teddycloud dockerd[2828]: time="2024-04-05T13:05:14.106361805+02:00" level=info msg="API listen on /run/docker.sock"
pi@teddycloud:~ $ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
pi@teddycloud:~ $ sudo usermod -a -G docker $(whoami)
pi@teddycloud:~ $ sudo apt-get install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1+deb11u2).
git set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@teddycloud:~ $ sudo mkdir /teddycloud
pi@teddycloud:~ $ cd ..
pi@teddycloud:/home $ cd ..
pi@teddycloud:/ $ sudo chmod o+rw /teddycloud/
pi@teddycloud:/ $ git clone https://github.com/toniebox-reverse-engineering/teddycloud.git
Cloning into 'teddycloud'...
remote: Enumerating objects: 8907, done.
remote: Counting objects: 100% (2560/2560), done.
remote: Compressing objects: 100% (688/688), done.
remote: Total 8907 (delta 1934), reused 2158 (delta 1832), pack-reused 6347
Receiving objects: 100% (8907/8907), 14.39 MiB | 2.01 MiB/s, done.
Resolving deltas: 100% (6122/6122), done.
pi@teddycloud:/ $ cd teddycloud/
pi@teddycloud:/teddycloud $ cd docker/
pi@teddycloud:/teddycloud/docker $ sudo docker compose up -d
WARN[0000] /teddycloud/docker/docker-compose.yaml: `version` is obsolete
[+] Running 13/13
✔ teddycloud 12 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 148.2s
✔ f4bb4e8dca02 Pull complete 29.3s
✔ 815eb209fdc7 Pull complete 94.0s
✔ ac7ca23aa19d Pull complete 1.5s
✔ 423648c181d9 Pull complete 2.8s
✔ c406629dc798 Pull complete 4.6s
✔ 6ccfbddfcd0f Pull complete 7.0s
✔ cedbb312d26b Pull complete 20.9s
✔ d3001fe934d6 Pull complete 27.2s
✔ 9c3ba925f18d Pull complete 51.6s
✔ bdd7fbaf1f8e Pull complete 55.0s
✔ c45c73fafe2b Pull complete 56.5s
✔ 42458e6edf39 Pull complete 58.4s
[+] Running 1/7
⠹ Network docker_default Created 5.2s
⠸ Volume "docker_content" Created 4.3s
⠸ Volume "docker_library" Created 4.3s
⠹ Volume "docker_firmware" Created 4.2s
⠹ Volume "docker_certs" Created 4.2s
⠙ Volume "docker_config" Created 4.1s
✔ Container teddycloud Started 4.1s
pi@teddycloud:/teddycloud/docker $ docker ps
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json": dial unix /var/run/docker.sock: connect: permission denied
pi@teddycloud:/teddycloud/docker $ sudo docker ps
after calling docker ps no response… the light on the zero 2 still blinks