cd /Volumes/boot
touch ssh
Safely remove or eject the card from the computer and insert it again in your Raspberry Pi.
Boot up Raspberry Pi.
More info: https://phoenixnap.com/kb/enable-ssh-raspberry-pi
docker info
.
..
...
WARNING: No memory limit support
WARNING: No swap limit support
...
..
.
Since RPI doesn't use traditional bootloaders like Grub or extlinux, the approach of modifying kernel parameters is as follows;
You need to edit file vim /boot/cmdline.txt And append
cgroup_enable=memory cgroup_memory=1 swapaccount=1
To the end of the only line, so it becomes something like this:
cat /boot/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=0f5def0d-02 rootfstype=ext4 fsck.repair=yes rootwait cgroup_enable=memory cgroup_memory=1 swapaccount=1
Boot up Raspberry Pi.
sudo su
apt update
apt -y upgrade
apt -y install vim curl screen mc git unzip net-tools links2 sudo nmap make mycli
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
rm -fr get-docker.sh
mkdir -p /etc/docker
cat > /etc/docker/daemon.json <<ENDLINE
{
"bip": "172.17.0.1/24"
}
ENDLINE
systemctl enable docker
systemctl start docker
curl -L "https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-armv7" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose