-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Private repository with Docker for Mac #20
Comments
Can you try starting the container with bash instead, and see what the ownership and permissions on /tmp are? |
Hi @alcohol
As I understand; I've changed the Docker user's id (501), which is not root's id ? |
Changing the user id should be fine. That cache directory should not be owned by root though. Unless root previously created it. I'll have to have a look at our base image.. |
Ah, my bad. I think that is a remnant of the composer install. It should be cleaned up though, definitely not supposed to be there. |
This should fix it once it gets merged. docker-library/official-images#3321 |
Hi @alcohol Should I wait for Docker hub to build new image or something like that? |
Once that above linked PR gets merged, the hub should have the latest image available. You can then run |
Thanks for tips! I'm subscribing on your PR to get notified when merged. I'll close this issue when OK. |
Hi @alcohol With the latest composer image; docker run --rm --interactive --tty \
--volume $PWD:/app \
--volume $SSH_AUTH_SOCK:/ssh-auth.sock \
--volume /etc/passwd:/etc/passwd:ro \
--volume /etc/group:/etc/group:ro \
--user $(id -u):$(id -g) \
--env SSH_AUTH_SOCK=/ssh-auth.sock \
composer update Loading composer repositories with package information
Can you tell me about your configuration ? Notice that I'm running Docker for Mac (latest versions). Regards; |
Can you return the output of the following commands?
|
Hi @alcohol
The |
Right, my bad, you are using OSX. I have noticed that they have introduced some changes to Docker for Mac. You no longer have to change user and mount the |
Also, on OSX, this workaround that I documented does not actually work since OSX users aren't actually stored in |
Ok; that what I was thinking. Wait for this issue : sharing SSH Agent feature on Docker for mac |
Hi @armetiz, Did you solve the problem ? If you can't solve the problem, remove the try again, i solved this way. |
@emnsen is correct. With recent editions of Docker for Mac, permission issues are no longer an issue. Files created by containers through volume binds will have the ownership set to the user running the container from the host. The workaround documented is only necessary on Linux. Unfortunately, I'm not sure if the same can be said for the ownership issues regarding SSH auth socket though. I think that is still problematic. But I could be mistaken. |
Hi both of @emnsen & @alcohol ;) let's see what's happening
The SSH Auth is not forwarded :( |
I am using a composer package using gitlab ssh via a different ssh port and it works fine Try this @armetiz ;
and ~/.ssh/config ;
|
Hi @emnsen BTW,
|
Hi @armetiz |
Hi there! I'm back ;) One of our teammate have a passphrase. Do you have any clue? I think the problem is coming from the TTY; |
Hi :) I tried to solve the problem, but i didn't. |
I don't want to dive into this debate with him ;) |
:))) Yes, this personal opinion. I just thought this would be the quickest solution :) |
In fact; the real problem is not the passphrase. I've tried to remove passphrase; and the problem still persist. I'm closing this issue to talk about the real problem. |
Hi there!
I'm trying to install private repository using composer Docker image.
I'm running Docker for mac.
After the following error, I've added
/private/tmp
as shared path.Now; I'm getting the following error :
I'm not mastering Docker at all.
Do you know why
/tmp
is ready only ?Regards;
The text was updated successfully, but these errors were encountered: