Hi I am getting a permissions error when trying to run docker-compose up
THis is the error that I am getting
Solution:Jump to solution
sorry for reviving this but just realized I did not provide an update, so i did try this and it started but i was getting permission errors on the build dir instead. I removed the user NODE lines from docker file and I have had no permission issues since then
17 Replies
Need more info
- dockerfile
- host operating system
To start
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
āÆ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. āÆ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. āÆ Asking technical questions (Clarkson) āÆ How to ask questions the smart way (Raymond)
Host-Ubuntu ARM
My bad =/
I tried to add line 9 to the file to see if that worked but it did not
@Helpers can someone help tropic?
@Y U G E N the docker man in particular
Is this in development or production
Development
I havent even tried
@tropic have you already fixed this?
Nopr
@Y U G E N wake up before I drive to Zwolle and bust into your bedroom
Since you're adding a user, you also need to run docker-compose as the same user.
Add
user: {UID}
where {UID}
is the node user's UID
Next up, because of the same reason you have to mount with :rw
- "./:/opt/app:rw"
Thank you I will be trying this today, I have been travelling for the past couple of days and I'm finally able to sit down
Solution
sorry for reviving this but just realized I did not provide an update, so i did try this and it started but i was getting permission errors on the build dir instead. I removed the user NODE lines from docker file and I have had no permission issues since then
I did use just the stock docker install and did the whole add my user to the docker group thing
nothing else so I'm not sure if its because we had different setups why the default file from sapphire template did not work
just a heads up though, keep up the good work everyone I really like Sapphire š
Yugen's not longer here
Rage quit
ahm