We earn commission when you buy through affiliate links.

This does not influence our reviews or recommendations.Learn more.

Wondering how to change the docker.sock file path?

What is Docker Socket?

It is the entry point for a Docker API.

This socket is used by Docker CLI by default to execute docker commands.

Let me show you how to change the location of the docker sock file.

Stop Docker

Firstly, if the docker service is running on your system, stop it.

To confirm it has stopped, spin up the status command.

Start Docker

Lets start the docker service, and check the status if it got started.

You have successfully updated the location of docker sock file.

If you are looking to learn Docker but busy, then check out thiscrash course.