Files
runner-images/images/ubuntu-slim/scripts/build/install-docker-cli.sh

16 lines
641 B
Bash

#!/bin/bash -e
################################################################################
## File: install-docker-cli.sh
## Desc: Install docker cli, but not the engine
################################################################################
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce-cli