- Make sure you have
curlinstalled and run:
curl https://get.docker.com -s | sh- (you may not have to perform this step) Get command for installing
newuidmapandnewgidmapbinaries by running:
dockerd-rootless-setuptool.sh installcopying and running the output.
- Set up running
dockeras a non-privileged user (withoutsudo):
dockerd-rootless-setuptool.sh install- Add the displayed lines to your shell config file (
~/.bashrc;~/.zshrcetc.):
# For example:
sudo apt install mblaze #\*
echo -e "\nmexport PATH=/usr/bin:$PATH\nexport DOCKER_HOST=unix:///run/user/1000/docker.sock" >> ~/.bashrc- Check if
dockerwas installed correctly and is working:
docker -v