-
-
Notifications
You must be signed in to change notification settings - Fork 570
Expand file tree
/
Copy pathinstall_docker_kali.sh
More file actions
executable file
·20 lines (18 loc) · 863 Bytes
/
install_docker_kali.sh
File metadata and controls
executable file
·20 lines (18 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
if [ "$EUID" -ne 0 ]
then echo "[-] Please run as root"
exit
fi
# Pulls updates for the kali repo's and upgrades the current packages in Kali Linux
apt update
# Install Docker and Docker Compose
#apt install docker.io docker-compose -y
apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
https://download.docker.com/linux/debian bookworm stable" > /etc/apt/sources.list.d/docker.list
apt update
apt-get install -y --no-install-recommends docker-ce docker-compose-plugin
# apt-get install -y --no-install-recommends docker-ce docker-ce-cli containerd.io