[Starlingx-discuss] build Starlingx Image
Hi: When I try to build starlingx image, i have some problems and can't resolve it. I follow the following doc to build our image. https://wiki.openstack.org/wiki/StarlingX/Developer_Guide#Build_the_CentOS_M... At setup building Docker Container, step 7: make build At building process, executing the below command will fails. RUN useradd -r -u $MYUID -g cgts -m $MYUNAME && ln -s /home/$MYUNAME/.ssh /mySSH Error is useradd: UID 0 is not unique. I try to add flag -o into useradd, so can pass this step. But at build packages, step 4 will fails. build-pkgs --serial The main reason of this step is that lighttpd startup fails. I also try other method to build it. For example: at /../stx-tools/Makefile file, delete -build-arg MYUID=$(UID) (at my host machine, i directly use root account) So, command "make build " can pass, but non-root account will be lack of permission to do anything inside container. Anybody have ideal to this issue. Thanks Dehao
Hi Dehao,
When I try to build starlingx image, i have some problems and can't resolve it.
At setup building Docker Container, step 7: make build At building process, executing the below command will fails. RUN useradd -r -u $MYUID -g cgts -m $MYUNAME && ln -s /home/$MYUNAME/.ssh /mySSH Error is useradd: UID 0 is not unique.
Anybody have ideal to this issue.
Not from this side, is you user part of docker group? are you executing with sudo?
Hi, Arce Moreno Thank you for your response. Yes, I have added two account into docker group at host machine. One is root. The other is non-root account which have the same name with container's non-root account. Thanks Dehao -----Original Message----- From: Arce Moreno, Abraham Sent: Thursday, August 23, 2018 12:08 AM To: Shang, Dehao <dehao.shang@intel.com>; starlingx-discuss@lists.starlingx.io Subject: RE: build Starlingx Image Hi Dehao,
When I try to build starlingx image, i have some problems and can't resolve it.
At setup building Docker Container, step 7: make build At building process, executing the below command will fails. RUN useradd -r -u $MYUID -g cgts -m $MYUNAME && ln -s /home/$MYUNAME/.ssh /mySSH Error is useradd: UID 0 is not unique.
Anybody have ideal to this issue.
Not from this side, is you user part of docker group? are you executing with sudo?
On 08/21/2018 10:47 PM, Shang, Dehao wrote:
Hi:
When I try to build starlingx image, i have some problems and can’t resolve it.
I follow the following doc to build our image.
https://wiki.openstack.org/wiki/StarlingX/Developer_Guide#Build_the_CentOS_M...
At setup building Docker Container, step 7:
make build
At building process, executing the below command will fails.
RUN useradd -r -u $MYUID -g cgts -m $MYUNAME && ln -s /home/$MYUNAME/.ssh /mySSH
Error is useradd: UID 0 is not unique.
Are you running the "make build" as root (or via sudo)? You need to run this as a regular user not root.
I try to add flag –o into useradd, so can pass this step. But at build packages, step 4 will fails.
build-pkgs --serial
The main reason of this step is that lighttpd startup fails.
I also try other method to build it.
For example: at /../stx-tools/Makefile file, delete –build-arg MYUID=$(UID) (at my host machine, i directly use root account)
So, command “make build ” can pass, but non-root account will be lack of permission to do anything inside container.
Mostly you should not be doing things as root inside the container, but if needed sudo is available. Sau!
Anybody have ideal to this issue.
Thanks
Dehao
_______________________________________________ Starlingx-discuss mailing list Starlingx-discuss@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
participants (3)
-
Arce Moreno, Abraham
-
Saul Wold
-
Shang, Dehao