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

Failed to build docker image #912

Closed
monkeymq opened this issue Nov 24, 2023 · 2 comments · Fixed by #947
Closed

Failed to build docker image #912

monkeymq opened this issue Nov 24, 2023 · 2 comments · Fixed by #947
Labels
bug Something isn't working

Comments

@monkeymq
Copy link

I'm following official document(https://arrow.apache.org/ballista/user-guide/deployment/docker.html)to deploy ballista using docker, but always encounter an error when executing step ./dev/build-ballista-docker.sh which has troubled me for a day. I'm using CentOS 7.9, there are apart of logs below, can someone take a look?

Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (18.17.1-deb-1nodesource1) ...
Setting up nodejs (18.17.1-deb-1nodesource1) ...

added 1 package in 999ms
npm notice
npm notice New major version of npm available! 9.6.7 -> 10.2.4
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.4>
npm notice Run `npm install -g npm@10.2.4` to update!
npm notice
Removing intermediate container 84d7ac058886
 ---> aa829093f723
Step 8/16 : RUN adduser -q -u $EXT_UID builder --home /home/builder &&     mkdir -p /home/builder/workspace
 ---> Running in 8092dd919670
adduser: The UID 0 is already in use.
The command '/bin/sh -c adduser -q -u $EXT_UID builder --home /home/builder &&     mkdir -p /home/builder/workspace' returned a non-zero code: 1

@monkeymq monkeymq added the bug Something isn't working label Nov 24, 2023
@zhangyuan
Copy link

I guess you are building the image with root or sudo to run. Use another with the permission to use docker command could resolve the issue. However the script assumes build with non-root user.

@monkeymq
Copy link
Author

monkeymq commented Dec 5, 2023

@zhangyuan Thank you for your suggestion that solved part of my problem, I say this because I also need to set permissions to some scripts before performing any steps (after git clone of course), i.e. chmod a+rwx ./dev/docker/* .sh, this works for me.

BTW, documentation for Ballista is a bit old and incorrect, which puts some people off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants