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

Fail to build the image #1

Closed
joapolarbear opened this issue Oct 27, 2021 · 1 comment · Fixed by #4
Closed

Fail to build the image #1

joapolarbear opened this issue Oct 27, 2021 · 1 comment · Fixed by #4

Comments

@joapolarbear
Copy link

joapolarbear commented Oct 27, 2021

Hi, I am following the steps here to reproduce habitat. When running setup.sh to build the image, the following error occurs

Step 14/19 : RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
---> Running in d42ae3b13a05
gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: keyserver receive failed: No name
The command '/bin/sh -c gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4' returned a non-zero code: 2

Does it mean the keyserver ha.pool.sks-keyservers.net is not accessible now?

I wonder whether it is necessary to duplicate the user account on the host machine into the container. With a root account in the container, I can access everything mounted from the host machine. What problem does it cause?

Looking forward to your reply. Thanks.

@geoffxy
Copy link
Owner

geoffxy commented Oct 27, 2021

Hey - thanks for flagging. Yes you can use the container as root. The benefit of using your user account inside the container is that files created in the mounted directory while inside the container will be owned by your user even when accessed from the host machine. Otherwise the created files will be owned by root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants