Dear Mike,
it seems that you are running the install_linux.sh script as root. This causes a problem when the installation script copies the userid to the docker image.
Running it as a normal user should solve the problem.
Kind regards,
Dávid Horváth
Junior Researcher
Radiation Protection
ELI Beamlines
E: david.horvath_at_eli-beams.eu
T: +420 266 051 283
M: Za Radnicí 835, 25241 Dolní Břeľany, Czech Republic
________________________________________
From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of Wood, Michael H <wood5_at_canisius.edu>
Sent: 11 January 2019 15:56
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: UID 0 error when installing FLUKA for docker
I am having trouble installing fluka docker image. I have been running docker on CENTOS 7 and Mac computers for other projects. I ran the install_linux.sh script on both CENTOS 7 and Mac, and I get the same UID 0 error (see below).
Any help would be greatly appreciated.
Thanks,
Mike
/\/\\-\\/\//\/\\-\\/\//\/\\-\\/\//\/\\-\\/\//\/\\-\\/\//\/\\-\\/\/
Professor/Chair Physics Department
Director Pre-engineering Program
Canisius College
716-888-2426
/\/\\-\\/\//\/\\-\\/\//\/\\-\\/\//\/\\-\\/\//\/\\-\\/\//\/\\-\\/\/
Step 13/19 : ARG UID=1000
---> Running in fccb9e576526
---> 0a926ce7d984
Removing intermediate container fccb9e576526
Step 14/19 : RUN useradd -u $UID -c 'Fluka User' -m -d /home/fluka -s /bin/bash fluka && mkdir -p /usr/local/fluka && tar -zxf /tmp/fluka*.tar.gz -C /usr/local/fluka && cd /usr/local/fluka; make && cp /tmp/rfluka /usr/local/fluka/flutil/ && chmod 700 /usr/local/fluka/flutil/rfluka && chown -R fluka:fluka /usr/local/fluka && rm -rf /tmp/fluka*.tar.gz /tmp/rfluka && mkdir /docker_work && chown -R fluka:fluka /docker_work && chmod 755 /etc/profile.d/version_installed.sh
---> Running in 5ccea66507a1
useradd: UID 0 is not unique
make: *** No targets specified and no makefile found. Stop.
The command '/bin/sh -c useradd -u $UID -c 'Fluka User' -m -d /home/fluka -s /bin/bash fluka && mkdir -p /usr/local/fluka && tar -zxf /tmp/fluka*.tar.gz -C /usr/local/fluka && cd /usr/local/fluka; make && cp /tmp/rfluka /usr/local/fluka/flutil/ && chmod 700 /usr/local/fluka/flutil/rfluka && chown -R fluka:fluka /usr/local/fluka && rm -rf /tmp/fluka*.tar.gz /tmp/rfluka && mkdir /docker_work && chown -R fluka:fluka /docker_work && chmod 755 /etc/profile.d/version_installed.sh' returned a non-zero code: 2
ERROR: Failed to install Fluka. See the troubleshooting part of the user guide.
__________________________________________________________________________
You can manage unsubscription from this mailing list at
https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Jan 11 2019 - 18:17:06 CET