apt update
apt-get remove docker docker-engine docker.io containerd runc
apt-get update
apt-get -y install ca-certificates curl gnupg lsb-release
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
systemctl start docker
systemctl enable docker
####
root@mypi:~# docker info
Client:
...
Server:
Containers: 0
...
WARNING: No blkio throttle.write_iops_device support
root@mypi:~#
##
##
root@mypi:~# exit
logout
$ which docker
/usr/bin/docker
$ docker info
Client:
...
Server:
ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied
errors pretty printing info
$ whoami
pi
$
##
##
usermod -aG docker pi
##
##
$ docker info
...
Server:
Containers: 0
Running: 0
...
WARNING: No blkio throttle.write_iops_device support
$ whoami
pi
$ docker run -t -i -v $(pwd)/data:/code/data openelevation/open-elevation /code/create-tiles.sh /code/data/SRTM_NE_250m.tif 10 10
Unable to find image 'openelevation/open-elevation:latest' locally
latest: Pulling from openelevation/open-elevation
345e3491a907: Pull complete
...
4f4fb700ef54: Pull complete
Digest: sha256:82fb21612e86ba847c1f30b6c9a2f457a26a929841a5754282ee2c9fea018639
Status: Downloaded newer image for openelevation/open-elevation:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
exec /code/create-tiles.sh: exec format error
$
##
##
/code
##
##
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
##
##
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 9.8G 18G 36% /
...
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 11G 18G 38% /
...
$