Skip to content

Instantly share code, notes, and snippets.

@gartisk
Last active March 2, 2024 14:16
Show Gist options
  • Save gartisk/76da194f63ff2e4ebcd399dedd5b2eb4 to your computer and use it in GitHub Desktop.
Save gartisk/76da194f63ff2e4ebcd399dedd5b2eb4 to your computer and use it in GitHub Desktop.
#!/bin/bash
# sudo curl -fsSL <this_script_raw_path> | bash
apt update
apt install uidmap
sudo -k
curl -sSH "https://raw.githubusercontent.com/docker/docker-install/master/rootless-install.sh" | bash
cat >> ~/.bashrc <<EOL
# Docker Environment
export PATH=/srv/docker/bin:$PATH
export DOCKER_HOST=unix:///run/user/$(id -u)/docker.sock
EOL
curl -fsSL https://raw.githubusercontent.com/docker/docker-install/master/verify-docker-install | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment