Last active
March 2, 2024 14:16
-
-
Save gartisk/76da194f63ff2e4ebcd399dedd5b2eb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
how to run it:
curl -fsSL https://gist.githubusercontent.com/gartisk/76da194f63ff2e4ebcd399dedd5b2eb4/raw/2c04c2f9c986e804c197919951d8e4cbb06c6f72/docker-rootless.sh | bash