Last active
December 15, 2025 10:52
-
-
Save the-moog/5d6b3cdb7eb99a44436171b51fc04102 to your computer and use it in GitHub Desktop.
Cut-n-paste docker (docker-ce) install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
Author
Author
# The following version, one line at a time works for Debian and Ubuntu
sudo -i
VER=$(lsb_release -cs)
DIST=$(lsb_release -is)
apt update
apt -y dist-upgrade
mkdir -p ~/.config/tmux
apt install -y nfs-client joe openssh-client openssh-server acl tmux
apt install -y apt-transport-https ca-certificates curl gnupg2
mkdir -p /etc/apt/trusted.gpg.d
curl -fsSL https://download.docker.com/linux/${DIST@L}/gpg | tee /etc/apt/trusted.gpg.d/docker-${DIST@L}-linux.asc
echo "deb [arch=amd64] https://download.docker.com/linux/${DIST@L} ${VER@L} stable" | tee /etc/apt/sources.list.d/docker.list
apt update
apt install -y docker-ce
systemctl enable docker
systemctl start docker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removed software-properties-common as it's missing from Debian13