Skip to content

Instantly share code, notes, and snippets.

@the-moog
Last active October 22, 2025 07:47
Show Gist options
  • Select an option

  • Save the-moog/5d6b3cdb7eb99a44436171b51fc04102 to your computer and use it in GitHub Desktop.

Select an option

Save the-moog/5d6b3cdb7eb99a44436171b51fc04102 to your computer and use it in GitHub Desktop.
Cut-n-paste docker (docker-ce) install
# Cut and paste into bash shell to install DockerCE in 'one click'
# Also installs joe (wordstar like editor) and tmux (virtual terminals) as I like them but feel free to change that
unset SUDO
((! ${UID} == 0)) && SUDO=sudo
${SUDO} apt update && \
${SUDO} apt -y dist-upgrade && {
${SUDO} mkdir -p ~/.config/tmux && \
${SUDO} apt install -y nfs-client joe openssh-client openssh-server acl tmux && \
${SUDO} apt install -y apt-transport-https ca-certificates curl gnupg2; } && \
${SUDO} mkdir -p /etc/apt/trusted.gpg.d && (
curl -fsSL https://download.docker.com/linux/debian/gpg | ${SUDO} tee /etc/apt/trusted.gpg.d/docker-debian-linux.asc; ) && \
( echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | ${SUDO} tee /etc/apt/sources.list.d/docker.list; ) && \
${SUDO} apt update && ${SUDO} apt install docker-ce -y && \
${SUDO} systemctl enable docker && \
${SUDO} systemctl start docker
@the-moog
Copy link
Author

Removed software-properties-common as it's missing from Debian13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment