Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views4 pages

Docker Installation Summary

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views4 pages

Docker Installation Summary

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Docker Installation and Configuration Summary

1. Docker Installation and Setup:

- Install Docker: You installed Docker Engine on your Ubuntu system to create, deploy, and

manage containers.

- Commands:

sudo apt update

sudo apt install docker.io

2. Docker Service Start:

- Start Docker Daemon: You started the Docker service to ensure Docker is running and available

for use.

- Commands:

sudo service docker start

3. User Permissions and Docker Group:

- Add User to Docker Group: You added your user ('madhudamodhar') to the Docker group to

avoid needing sudo for running Docker commands.

- Commands:

sudo usermod -aG docker madhudamodhar

- Check User Groups: You verified that your user is part of the docker group.

- Commands:

groups madhudamodhar
4. Checking Docker Status:

- Check Docker Info (without sudo): You tried to get Docker information but encountered a

permission error because your user wasn't in the Docker group initially.

- Commands:

docker info

- Check Docker Info (with sudo): You ran the 'docker info' command using sudo to bypass the

permission issue.

- Commands:

sudo docker info

5. Check Docker Socket Permissions:

- Check Docker Socket: You checked the permissions of the Docker socket file

(/var/run/docker.sock) to understand why there was a permission issue when accessing Docker.

- Commands:

ls -l /var/run/docker.sock

6. Fix Permission Issues:

- Fixed Docker Socket Permissions: After adding your user to the docker group, you logged out

and logged back in to apply the changes, allowing your user to interact with Docker without sudo.

7. Verify Docker Configuration:

- Check Docker Version: You ran the 'docker version' command to confirm the installed Docker

version and configuration.

- Commands:

docker version
8. Start Docker Service:

- Start Docker (if not running): You ensured that the Docker service was up and running using

'sudo service docker start'.

Summary of Docker Commands You've Used:

1. Installation and Updates:

sudo apt update

sudo apt install docker.io

2. Service Management:

- Start Docker Daemon:

sudo service docker start

3. User Group Management:

- Add user to Docker group:

sudo usermod -aG docker <username>

- Check user group membership:

groups <username>

4. Docker Info and Permissions:

- Get Docker info (without sudo):

docker info

- Get Docker info (with sudo):

sudo docker info


5. Docker Socket Permissions:

- Check Docker socket file permissions:

ls -l /var/run/docker.sock

6. Docker Version:

- Get Docker version:

docker version

Next Steps:

Now that Docker is set up and running with the correct permissions, you can proceed with

containerizing your applications, creating Docker images, and running containers for your projects.

Would you like further instructions on how to containerize a specific application or manage Docker

containers?

You might also like