Docker doesn't come natively installed on Linux Mint. To be able to run it you will need apparmor and cgroup-lite packages. Follow the steps below to get it working:
- Add repository to APT sources
- sudo echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list
- Import repository keys
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
- Install Docker
- sudo apt-get update
- sudo apt-get install -y docker.io cgroup-lite apparmor
- Check if Docker daemon is running
- ps aux | grep docker
- If docker daemon is not running, try the following command:
- sudo service docker start
- Check if docker.sock exists. This file needs to be owned by docker group to be able to connect to it without root permissions
- ls -al /var/run/docker.*
- Check if user is part of docker group
- id -a
- If user is not in the docker group you can add them using this command: sudo usermod -a -G docker $USER
Comments
Post a Comment