cluster-deployment/jobs/docker/docker.job

15 lines
770 B
Text
Raw Normal View History

#!/usr/bin/env bash
# Fix apt update errors
# Ref https://blog.samcater.com/fix-workaround-rpi4-docker-libseccomp2-docker-20/
RUN "sudo apt-get install libseccomp2 -t buster-backports";
# RUN "curl -fsSL https://get.docker.com -o /tmp/get-docker.sh";
# RUN "chmod +x /tmp/get-docker.sh";
# RUN "sudo sh /tmp/get-docker.sh";
RUN 'echo "deb [arch=$(dpkg --print-architecture)] http://download.docker.com/linux/raspbian buster stable" | sudo tee /etc/apt/sources.list.d/docker.list';
RUN "sudo apt-get update";
RUN "sudo apt-get install --yes docker-ce";
RUN "if [[ ! -e \"/etc/docker/daemon.json\" ]]; then echo '{\"insecure-registries\":[\"registry.service.mooncarrot.space:5000\"]}' | sudo tee /etc/docker/daemon.json; fi";
RUN "sudo systemctl reload docker.service";