-
Notifications
You must be signed in to change notification settings - Fork 49
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 Build Fails to Import all images into IMGAPI #98
Comments
Thanks for the report. Which DC did this occur in (or is this a private Triton installation)? Can you share the Dockerfile (and/or repo) that can reproduce this? Thanks. |
twhiteman, its a private triton. I'm assuming imgapi isn't functioning properly, Other builds work. I may have orphaned intermediate images from ctrl+c'ing during builds etc... [root@ws00 stackstorm]# cat Dockerfile ARG ST2_VERSION COPY ./sources.list /etc/apt/ RUN apt-get -y update RUN curl -s COPY ./conf/st2.conf.template /st2.conf.template COPY docker-entrypoint.sh /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ] |
Great - I can reproduce that problem (though not sure which symlink is the cause yet), I'll track down the cause and update on my findings. |
It is failing on /etc/rc0.d/K01sendsigs, which gets removed in the second RUN statement in the Dockerfile: It was originally a symlink into the init.d dir: I don't exactly know why it's failing here, but we'll continue investigating and let you know what we find out. |
I just hit this as well and added to the ticket in our JIRA. |
This bug is open internally at Joyent as well, as DOCKER-978. |
Hi @jclulow Joshua, Great seeing you here :) Yes, this is the issue that I'm hitting now :) Shall I package all commands into a single RUN command to avoid this issue? Or, Shall I delete all rm -rf commands from RUN to avoid this? Cheers, |
Hello @jclulow , I can successfully build the image when I remove below lines from Dockerfile. |
Docker Build is failing with the following message while importing images into IMGAPI.
"Build failed: zfs_snapshot_tar exited with code: 1 (zfs_snapshot_tar: readlinkat: No such file or directory
) (req_id: 67b10e5f-0420-4176-8df9-b814cd9bdf27)"
creating home directory
/home/st2'.Adding group
stanley' (GID 1000) ... Done. Adding user
stanley' ...Adding new user
stanley' (1000) with group
stanley' ...Creating home directory
/home/stanley' ... Copying files from
/etc/skel' ...Setting up st2 (2.0.1-3) ...
---> 5e8fcb03860f
Step 9 : COPY ./conf/st2.conf.template /st2.conf.template
---> 431f44cd964b
Step 10 : RUN md5sum /etc/st2/st2.conf > /st2.conf.orig.md5
---> Running in 77bd7a162a8d
---> 8469ef762bb9
Step 11 : COPY docker-entrypoint.sh /entrypoint.sh
---> 259ce34e280d
Step 12 : ENTRYPOINT /entrypoint.sh
---> f001aa3cd51a
Importing image b6f0d1ba568e into IMGAPI
Importing image 89fd4d78c32f into IMGAPI
Importing image 467a11a5867a into IMGAPI
Importing image 11fc9ce76c5e into IMGAPI
Importing image a89830093fb2 into IMGAPI
Importing image 170f95b9d69d into IMGAPI
Importing image 5e8fcb03860f into IMGAPI
Build failed: zfs_snapshot_tar exited with code: 1 (zfs_snapshot_tar: readlinkat: No such file or directory
) (req_id: 67b10e5f-0420-4176-8df9-b814cd9bdf27)
`
The text was updated successfully, but these errors were encountered: