If you encountered an error that says “Could Not Be Opened In Append Mode: Failed To Open Stream: Permission Denied” such us the the image below, you can solve this by simply changing the permission access of certain file.
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-69.png)
Change the access permission of the docker.sock file (docker socket) to be able to connect to the docker daemon by typing the following command:
$ sudo chmod 666 /var/run/docker.sock
The chmod 666
will allow all users to read and write but cannot execute the file.