Skip to content

Instantly share code, notes, and snippets.

@belachkar
Created June 24, 2021 21:05
Show Gist options
  • Save belachkar/a8f3a65f1c0f5a95041ae20632b4cab8 to your computer and use it in GitHub Desktop.
Save belachkar/a8f3a65f1c0f5a95041ae20632b4cab8 to your computer and use it in GitHub Desktop.

kubernetes docker installation prerequis

prérequis : installation de Docker

curl -fsSL https://get.docker.com | sh;
sudo usermod -aG docker $USER

groupadd -g 500000 dockremap && 
groupadd -g 501000 dockremap-user && 
useradd -u 500000 -g dockremap -s /bin/false dockremap && 
useradd -u 501000 -g dockremap-user -s /bin/false dockremap-user

echo "dockremap:500000:65536" >> /etc/subuid && 
echo "dockremap:500000:65536" >>/etc/subgid

echo "
  {
   \"userns-remap\": \"default\"
  }
" > /etc/docker/daemon.json

systemctl daemon-reload && systemctl restart docker

désactivation du swap

swapoff -a
vim /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment