Closed sunheat closed 2 years ago
Not sure what I am doing wrong, but after
Step 31/31 : ENTRYPOINT ["/docker-entrypoint.sh"] ---> Running in 1bc907c06a78 Removing intermediate container 1bc907c06a78 ---> 9381532a7053 Successfully built 9381532a7053 Successfully tagged cura-build-env:centos-latest
I ran docker run 9381532a7053 and got the following output, however the container did not keep running. It exited after the following output and I don't have a running container for the image I just built. Please enlighten me.
docker run 9381532a7053
+ [[ -z /srv/cura-build-environment ]] + source /opt/rh/devtoolset-8/enable ++ export PATH=/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ++ PATH=/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ++ export MANPATH=/opt/rh/devtoolset-8/root/usr/share/man: ++ MANPATH=/opt/rh/devtoolset-8/root/usr/share/man: ++ export INFOPATH=/opt/rh/devtoolset-8/root/usr/share/info ++ INFOPATH=/opt/rh/devtoolset-8/root/usr/share/info ++ export PCP_DIR=/opt/rh/devtoolset-8/root ++ PCP_DIR=/opt/rh/devtoolset-8/root ++ export PERL5LIB=/opt/rh/devtoolset-8/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-8/root/usr/lib/perl5:/opt/rh/devtoolset-8/root//usr/share/perl5/vendor_perl ++ PERL5LIB=/opt/rh/devtoolset-8/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-8/root/usr/lib/perl5:/opt/rh/devtoolset-8/root//usr/share/perl5/vendor_perl +++ rpm --eval '%{_libdir}' ++ rpmlibdir=/usr/lib64 ++ '[' /usr/lib64 '!=' /usr/ ']' ++ rpmlibdir32=:/opt/rh/devtoolset-8/root/usr/lib ++ export LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib ++ LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib ++ export LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib ++ LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib ++ pythonvers=2.7 ++ export PYTHONPATH=/opt/rh/devtoolset-8/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-8/root/usr/lib/python2.7/site-packages ++ PYTHONPATH=/opt/rh/devtoolset-8/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-8/root/usr/lib/python2.7/site-packages ++ export PKG_CONFIG_PATH=/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig ++ PKG_CONFIG_PATH=/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig + export PATH=/srv/cura-build-environment/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + PATH=/srv/cura-build-environment/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + export PKG_CONFIG_PATH=/srv/cura-build-environment/lib/pkgconfig:/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig + PKG_CONFIG_PATH=/srv/cura-build-environment/lib/pkgconfig:/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig + exec
Hi @sunheat, If you need to access the container then I believe you should do it like this: docker run -it 9381532a7053 /bin/bash
docker run -it 9381532a7053 /bin/bash
Not sure what I am doing wrong, but after
I ran
docker run 9381532a7053
and got the following output, however the container did not keep running. It exited after the following output and I don't have a running container for the image I just built. Please enlighten me.