- Make sure you have
curl
installed and run:
curl https://get.docker.com -s | sh
- (you may not have to perform this step) Get command for installing
newuidmap
andnewgidmap
binaries by running:
dockerd-rootless-setuptool.sh install
copying and running the output.
- Set up running
docker
as a non-privileged user (withoutsudo
):
dockerd-rootless-setuptool.sh install
- Add the displayed lines to your shell config file (
~/.bashrc
;~/.zshrc
etc.):
# 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
docker
was installed correctly and is working:
docker -v