Skip to content
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

docker-compose up nginx Permission Error #1222

Closed
antagus1953 opened this issue Oct 30, 2017 · 5 comments
Closed

docker-compose up nginx Permission Error #1222

antagus1953 opened this issue Oct 30, 2017 · 5 comments
Labels

Comments

@antagus1953
Copy link

antagus1953 commented Oct 30, 2017

Hi.

Can you help me with these error?. When I try to do docker-compose up nginx it fails with this error:

Step 28/149 : COPY ./aliases.sh /home/laradock/aliases.sh
---> Using cache
---> 1cf3d5e352fd
Step 29/149 : RUN echo "" >> ~/.bashrc && echo "# Load Custom Aliases" >> ~/.bashrc && echo "source /home/laradock/aliases.sh" >> ~/.bashrc && echo "" >> ~/.bashrc && sed -i 's/\r//' /home/laradock/aliases.sh && sed -i 's/^#! /bin/sh/#! /bin/bash/' /home/laradock/aliases.sh
---> Running in a46324b143a9
sed: can't read /home/laradock/aliases.sh: Permission denied
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c echo "" >> ~/.bashrc && echo "# Load Custom Aliases" >> ~/.bashrc && echo "source /home/laradock/aliases.sh" >> ~/.bashrc && echo "" >> ~/.bashrc && sed -i 's/\r//' /home/laradock/aliases.sh && sed -i 's/^#! /bin/sh/#! /bin/bash/' /home/laradock/aliases.sh' returned a non-zero code: 2

I'm using Photon OS with docker version 17.06.0-ce and docker-compose version 1.17.0-rc1

@NakanishiTetsuhiro
Copy link

I'm having the same problem...

@NakanishiTetsuhiro
Copy link

It solved it!
I was trying to use Laradock on Ubuntu on VirtualBox.
When I run Laradock on the shared folder with the host OS, laradock not working.
After moving laradock dir to Desktop and runnning it works

@jmluang
Copy link

jmluang commented Jan 1, 2018

try to shutdown SELinux if your system have. hopes this can help.

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants