when create docker-compose up give me permission denied - docker

I installed docker desktop on mac, when run
docker-compuse up
return this error
open /Users/enad/.docker/buildx/current: permission denied
I am trying to add permission

Related

docker run -v throws permission denied error

I am running a docker container with a volume mounted (-v) which is a mounted directory on network (NAS). This mount point has write access provisioned to the user which runs docker process on the server.
However when I run the container as docker run -v path1:path2:z I get permission denied error on path1.
Error - docker: Error response from daemon: error while creating mount source path 'path1': mkdir 'path1': Permission Denied

Docker Machine: Not working: Cert permission denied

I'm trying from CloudSigma provider to create a docker machine and shows this error at the connect and execute "docker ps":
could not read CA certificate "/root/.docker/machine/machines/default/ca.pem": open /root/.docker/machine/machines/default/ca.pem: permission denied
Any solution???
Thank you.

dotnet restore error inside Docker-Container - permission denied

I used this tutorial to put my asp.net Core Application inside a Docker Container
https://code.visualstudio.com/docs/containers/quickstart-aspnet-core
But get an permission Denied inside the container:
10:39:02 /usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): error : Access to the path '/src/obj' is denied. [/src/Lankoon.csproj]
10:39:02 /usr/share/dotnet/sdk/3.1.201/NuGet.targets(124,5): error : Permission denied [/src/Lankoon.csproj]
10:39:02 The command '/bin/sh -c dotnet restore "./Lankoon.csproj"' returned a non-zero code: 1
I tried it on a Windows10 Machine and also on an Jenkins Build Server, the result is the same.
I don't understand as which user the nuget is running?
Can anyone help?
Add the following line to you dockerfile
USER root
The problem inside my container was that the user was not root and dotnet restore unfortunately need root access.

Installing magento 2.2 on docker

I need help with magento installation on docker. I have created folder on desktop "development/sources/". After that in sources folder I have cloned repository https://github.com/php-cuong/docker-magento2-lamp. There is yaml file for docker configuration. After running docker-compose up -d command in cli, this error appears:
Recreating d817e559459e_mysql_service ...
Recreating d817e559459e_mysql_service ... error
ERROR: for d817e559459e_mysql_service Cannot start service mysql: error while creating mount source path '/C/User s/Denis/Desktop/development/sources': mkdir /C/Users/Denis/Desktop: permission denied
ERROR: for mysql Cannot start service mysql: error while creating mount source path '/C/Users/Denis/Desktop/devel opment/sources': mkdir /C/Users/Denis/Desktop: permission denied
Encountered errors while bringing up the project.
Mount source path that is listed in error above, was already created manually before I run that command.
permission denied
Right click on Docker icon in tray and select Settings.
Under "Shared Drives" mark drive "C" and apply.
Now it should work. If it doesn't, just restart Docker and it should be working.

Cannot read docker container logs: Permission denied

When issuing the docker log <container> command, I am getting the following error:
[root#Infra-1 ~]# docker logs gitlab-redis
chmod: changing permissions of '/var/lib/redis': Permission denied
gitlab-redis is a container that has exited.
In fact, the directory does not exist at all:
[root#Infra-1 ~]# ls /var/lib/redis
ls: cannot access /var/lib/redis: No such file or directory
I suppose that docker log is looking in the wrong location. Could it possibly have been misconfigured? Where should I check?
I think docker logs is working, the output of the logs is chmod: changing permissions of '/var/lib/redis': Permission denied.
/var/lib/redis is inside the container, not on the host.

Resources