I'm currently creating a private npm registry for my company.
I pulled the verdaccio docker container and I put the config.yaml file into the folders in the container.
When I run verdaccio, an error message comes up:
EACCES: permission denied, mkdir '/verdaccio/storage/types-registry'
I haven't written any lines for 'types-registry'.
Can someone help me solve this?
Related
When using buildpacks to build my spring boot application on Fedora I get the following error during the execution of the spring-boot-plugin:build-image goal:
[INFO] [creator] ERROR: initializing analyzer: getting previous image: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied
After digging into the goal and buildpacks, I found the following command in the buildpack.io docs (by selecting "Linux" and "Container"):
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workspace -w /workspace \
buildpacksio/pack build <my-image> --builder <builder-image>
AFAICT this command should be equivalent to what happens inside of maven and it exhibits the same error.
My previous assumption was that the use in the buildpacksio/pack image doesn't have the access permissions to my docker socket. (The socket had 660 permissions and root:docker owner).
UPDATE: Even after updating to 666 permissions the issue still persists.
I don't really want to allow anyone to interact with the docker socket so setting it to 666 seems unwise. Is this the only option or can I also add the user in the container to the docker group?
The solution was that the Fedora docker package is no longer the most up-to-date way to install Docker. See the official Docker documentation
They both provide the same version number, but their build hash is different.
While I could not fully diagnose the difference between the two, I can report that it works with docker-ce and doesn't with docker.
I am trying to build gitlab using docker and keep getting this error message.
cp: cannot create regular file '/etc/gitlab/gitlab.rb': Permission denied
it looks like GITLAB_OMNIBUS_CONFIG is the issue.
I don't know how to resolve the issue. Please help!
It depends when you are getting the error message: on docker build or docker run.
In the latter case (runtime), you would need to mount your user folder (where you have the right to write) to GitLab container, as in here:
--volume /Users/username/gitlab/config:/etc/gitlab \
--volume /Users/username/gitlab/logs:/var/log/gitlab \
--volume /Users/username/gitlab/data:/var/opt/gitlab \
Official documentation:
Set up the volumes location
Before setting everything else, configure a new environment variable $GITLAB_HOME pointing to the directory where the configuration, logs, and data files will reside.
Ensure that the directory exists and appropriate permission have been granted.
For macOS users, use the user’s $HOME/gitlab directory:
export GITLAB_HOME=$HOME/gitlab
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.
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.
I am using the docker file for project API Sprout.
I want to launch the executable inside the docker container on a local file called open_api.json. Following the README, I run:
docker run -p 8000:8000 -v $(pwd)open_api.json:/api.json danielgtaylor/apisprout /api.json
But it fails with
[..datetime...] open /tmp/api.json: permission denied
How should I give the right permission / user to the file or container?
you need to give the api.json file the correct permissions.
for test give use:
chmod 777 api.json
. if it works change the permissions to something more restricted
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Step_by_Step_Guide/s1-navigating-ownership.html