mirror of
https://github.com/its-a-feature/Mythic
synced 2026-06-08 14:55:38 +00:00
3c934d9758
apt-key is deprecated and already removed on kali.
29 lines
811 B
Bash
Executable File
29 lines
811 B
Bash
Executable File
#! /bin/bash
|
|
if [ "$EUID" -ne 0 ]
|
|
then echo "[-] Please run as root"
|
|
exit
|
|
fi
|
|
|
|
# install the required services, pull docker the right docker for debian
|
|
apt-get install -y \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
curl \
|
|
gnupg-agent \
|
|
software-properties-common
|
|
|
|
install -m 0755 -d /etc/apt/keyrings
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/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/ubuntu \
|
|
$(lsb_release -cs) \
|
|
stable" > /etc/apt/sources.list.d/docker.list
|
|
|
|
apt-get update
|
|
|
|
#apt-get install -y docker-ce docker-ce-cli containerd.io
|
|
apt-get install -y --no-install-recommends docker-ce docker-compose-plugin
|