Invalid reference format from mkimage-yum.sh

Hi

I hope someone may be able to assist with my query here.

Docker version is Docker version 1.12.6, build 1398f24/1.12.6

I’m trying to run the command mkimage-yum.sh on RHEL 7.3, but receiving the following error on the final docker import step, despite all the prior steps seeming to succeed:

Invalid reference format

Dependency Installed:
GeoIP.x86_64 0:1.5.0-11.el7 acl.x86_64 0:2.2.51-12.el7 audit-libs.x86_64 0:2.6.5-3.el7_3.1
bind-libs-lite.x86_64 32:9.9.4-38.el7_3.3 bind-license.noarch 32:9.9.4-38.el7_3.3 binutils.x86_64 0:2.25.1-22.base.el7
bzip2-libs.x86_64 0:1.0.6-13.el7 ca-certificates.noarch 0:2017.2.14-70.1.el7_3 chkconfig.x86_64 0:1.7.2-1.el7_3.1
cpio.x86_64 0:2.11-24.el7 cracklib.x86_64 0:2.9.0-11.el7 cracklib-dicts.x86_64 0:2.9.0-11.el7
cronie-anacron.x86_64 0:1.4.11-14.el7_2.1 crontabs.noarch 0:1.11-6.20121102git.el7 cryptsetup-libs.x86_64 0:1.7.2-1.el7
cyrus-sasl-lib.x86_64 0:2.1.26-20.el7_2 dbus.x86_64 1:1.6.12-17.el7 dbus-glib.x86_64 0:0.100-7.el7
dbus-libs.x86_64 1:1.6.12-17.el7 dbus-python.x86_64 0:1.1.1-9.el7 desktop-file-utils.x86_64 0:0.22-1.el7
device-mapper.x86_64 7:1.02.135-1.el7_3.5 device-mapper-libs.x86_64 7:1.02.135-1.el7_3.5 dhcp-common.x86_64 12:4.2.5-47.el7
dhcp-libs.x86_64 12:4.2.5-47.el7 diffutils.x86_64 0:3.3-4.el7 dmidecode.x86_64 1:3.0-2.1.el7_3
dracut.x86_64 0:033-463.el7_3.2 dracut-network.x86_64 0:033-463.el7_3.2 e2fsprogs-libs.x86_64 0:1.42.9-9.el7
ebtables.x86_64 0:2.0.10-15.el7 elfutils-libelf.x86_64 0:0.166-2.el7 elfutils-libs.x86_64 0:0.166-2.el7
emacs-filesystem.noarch 1:24.3-19.el7_3 ethtool.x86_64 2:4.5-3.el7 expat.x86_64 0:2.1.0-10.el7_3
file.x86_64 0:5.11-33.el7 file-libs.x86_64 0:5.11-33.el7 findutils.x86_64 1:4.5.11-5.el7
fipscheck.x86_64 0:1.4.1-5.el7 fipscheck-lib.x86_64 0:1.4.1-5.el7 firewalld-filesystem.noarch 0:0.4.3.2-8.1.el7_3.3
gawk.x86_64 0:4.0.2-4.el7_3.1 gdbm.x86_64 0:1.10-8.el7 glib2.x86_64 0:2.46.2-4.el7
glibc-common.x86_64 0:2.17-157.el7_3.4 gmp.x86_64 1:6.0.0-12.el7_1 gnupg2.x86_64 0:2.0.22-4.el7
gobject-introspection.x86_64 0:1.42.0-1.el7 gpgme.x86_64 0:1.3.2-5.el7 grep.x86_64 0:2.20-2.el7
groff-base.x86_64 0:1.22.2-8.el7 gzip.x86_64 0:1.5-8.el7 hardlink.x86_64 1:1.0-19.el7
hwdata.x86_64 0:0.252-8.4.el7 info.x86_64 0:5.1-4.el7 ipset.x86_64 0:6.19-6.el7
ipset-libs.x86_64 0:6.19-6.el7 json-c.x86_64 0:0.11-4.el7_0 kbd-legacy.noarch 0:1.15.5-12.el7
kbd-misc.noarch 0:1.15.5-12.el7 keyutils-libs.x86_64 0:1.5.8-3.el7 kmod.x86_64 0:20-9.el7
kmod-libs.x86_64 0:20-9.el7 kpartx.x86_64 0:0.4.9-99.el7_3.3 krb5-libs.x86_64 0:1.14.1-27.el7_3
libacl.x86_64 0:2.2.51-12.el7 libassuan.x86_64 0:2.1.0-3.el7 libattr.x86_64 0:2.4.46-12.el7
libblkid.x86_64 0:2.23.2-33.el7_3.2 libcap.x86_64 0:2.22-8.el7 libcap-ng.x86_64 0:0.7.5-4.el7
libcom_err.x86_64 0:1.42.9-9.el7 libcurl.x86_64 0:7.29.0-35.el7 libdb.x86_64 0:5.3.21-19.el7
libdb-utils.x86_64 0:5.3.21-19.el7 libdrm.x86_64 0:2.4.67-3.el7 libedit.x86_64 0:3.0-12.20121213cvs.el7
libestr.x86_64 0:0.1.9-2.el7 libffi.x86_64 0:3.0.13-18.el7 libgcc.x86_64 0:4.8.5-11.el7
libgcrypt.x86_64 0:1.5.3-13.el7_3.1 libgpg-error.x86_64 0:1.12-3.el7 libidn.x86_64 0:1.28-4.el7
libmnl.x86_64 0:1.0.3-7.el7 libmount.x86_64 0:2.23.2-33.el7_3.2 libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3
libnfnetlink.x86_64 0:1.0.1-4.el7 libnl.x86_64 0:1.1.4-3.el7 libpciaccess.x86_64 0:0.13.4-3.el7_3
libpipeline.x86_64 0:1.2.3-3.el7 libpwquality.x86_64 0:1.2.3-4.el7 libselinux.x86_64 0:2.5-6.el7
libselinux-python.x86_64 0:2.5-6.el7 libselinux-utils.x86_64 0:2.5-6.el7 libsemanage.x86_64 0:2.5-5.1.el7_3
libsepol.x86_64 0:2.5-6.el7 libss.x86_64 0:1.42.9-9.el7 libssh2.x86_64 0:1.4.3-10.el7_2.1
libstdc++.x86_64 0:4.8.5-11.el7 libtasn1.x86_64 0:3.8-3.el7 libuser.x86_64 0:0.60-7.el7_1
libutempter.x86_64 0:1.1.6-4.el7 libuuid.x86_64 0:2.23.2-33.el7_3.2 libverto.x86_64 0:0.2.5-4.el7
libxml2.x86_64 0:2.9.1-6.el7_2.3 libxml2-python.x86_64 0:2.9.1-6.el7_2.3 libxslt.x86_64 0:1.1.28-5.el7
logrotate.x86_64 0:3.8.6-12.el7 lsscsi.x86_64 0:0.27-4.el7 lua.x86_64 0:5.1.4-15.el7
lzo.x86_64 0:2.06-8.el7 m2crypto.x86_64 0:0.21.1-17.el7 mozjs17.x86_64 0:17.0.0-19.el7
ncurses-base.noarch 0:5.9-13.20130511.el7 ncurses-libs.x86_64 0:5.9-13.20130511.el7 nspr.x86_64 0:4.13.1-1.0.el7_3
nss.x86_64 0:3.28.4-1.2.el7_3 nss-softokn.x86_64 0:3.16.2.3-14.4.el7 nss-softokn-freebl.x86_64 0:3.16.2.3-14.4.el7
nss-sysinit.x86_64 0:3.28.4-1.2.el7_3 nss-tools.x86_64 0:3.28.4-1.2.el7_3 nss-util.x86_64 0:3.28.4-1.0.el7_3
numactl-libs.x86_64 0:2.0.9-6.el7_2 openldap.x86_64 0:2.4.40-13.el7 openssh.x86_64 0:6.6.1p1-35.el7_3
openssl-libs.x86_64 1:1.0.1e-60.el7_3.1 p11-kit.x86_64 0:0.20.7-3.el7 p11-kit-trust.x86_64 0:0.20.7-3.el7
pam.x86_64 0:1.1.8-18.el7 pciutils-libs.x86_64 0:3.5.1-1.el7 pcre.x86_64 0:8.32-15.el7_2.1
pinentry.x86_64 0:0.8.1-17.el7 pkgconfig.x86_64 1:0.27.1-4.el7 plymouth-core-libs.x86_64 0:0.8.9-0.26.20140113.el7
plymouth-scripts.x86_64 0:0.8.9-0.26.20140113.el7 polkit.x86_64 0:0.112-12.el7_3 polkit-pkla-compat.x86_64 0:0.1-4.el7
popt.x86_64 0:1.13-16.el7 pth.x86_64 0:2.0.7-23.el7 pygobject3-base.x86_64 0:3.14.0-3.el7
pygpgme.x86_64 0:0.3-9.el7 pyliblzma.x86_64 0:0.5.3-11.el7 python.x86_64 0:2.7.5-48.el7
python-configobj.noarch 0:4.7.2-7.el7 python-dateutil.noarch 0:1.5-7.el7 python-decorator.noarch 0:3.4.0-3.el7
python-dmidecode.x86_64 0:3.10.13-12.el7_3 python-ethtool.x86_64 0:0.8-5.el7 python-firewall.noarch 0:0.4.3.2-8.1.el7_3.3
python-iniparse.noarch 0:0.4-9.el7 python-libs.x86_64 0:2.7.5-48.el7 python-lxml.x86_64 0:3.2.1-4.el7
python-magic.noarch 0:5.11-33.el7 python-perf.x86_64 0:3.10.0-514.26.1.el7 python-pycurl.x86_64 0:7.19.0-19.el7
python-pyudev.noarch 0:0.15-7.el7_2.1 python-rhsm.x86_64 0:1.17.10-1.el7_3 python-rhsm-certificates.x86_64 0:1.17.10-1.el7_3
python-slip.noarch 0:0.4.0-2.el7 python-slip-dbus.noarch 0:0.4.0-2.el7 python-urlgrabber.noarch 0:3.10-8.el7
pyxattr.x86_64 0:0.5.1-5.el7 qrencode-libs.x86_64 0:3.4.1-3.el7 readline.x86_64 0:6.2-9.el7
redhat-logos.noarch 0:70.0.3-6.el7 redhat-release-server.x86_64 0:7.3-7.el7 redhat-support-lib-python.noarch 0:0.9.7-6.el7
rpm-build-libs.x86_64 0:4.11.3-21.el7 rpm-libs.x86_64 0:4.11.3-21.el7 rpm-python.x86_64 0:4.11.3-21.el7
sed.x86_64 0:4.2.2-5.el7 selinux-policy.noarch 0:3.13.1-102.el7_3.16 shared-mime-info.x86_64 0:1.1-9.el7
snappy.x86_64 0:1.1.0-3.el7 sqlite.x86_64 0:3.7.17-8.el7 systemd-libs.x86_64 0:219-30.el7_3.9
systemd-sysv.x86_64 0:219-30.el7_3.9 sysvinit-tools.x86_64 0:2.88-14.dsf.el7 tcp_wrappers-libs.x86_64 0:7.6-77.el7
tzdata.noarch 0:2017b-1.el7 usermode.x86_64 0:1.111-5.el7 ustr.x86_64 0:1.0.4-16.el7
virt-what.x86_64 0:1.13-8.el7 which.x86_64 0:2.20-7.el7 xdg-utils.noarch 0:1.1.0-0.17.20120809git.el7
xz.x86_64 0:5.2.2-1.el7 xz-libs.x86_64 0:5.2.2-1.el7 yum-metadata-parser.x86_64 0:1.1.4-10.el7
zlib.x86_64 0:1.2.7-17.el7

Complete!

  • [[ -n ‘’ ]]
  • yum -c /etc/yum.conf --installroot=/tmp/mkimage-yum.sh.f81bVs -y clean all
    Loaded plugins: product-id, rhnplugin, search-disabled-repos, versionlock
    Cleaning repos: RHEL7.3-RHN-Tools-Q2-July2017-x86_64 RHEL7.3-Server-Optional-Q2-July2017-x86_64 RHEL7.3-Server-Q2-July2017-x86_64
    : RHEL7.3-Server-Supplementary-Q2-July2017-x86_64
    Cleaning up everything
  • cat
  • rm -rf /tmp/mkimage-yum.sh.f81bVs/usr/lib/locale /tmp/mkimage-yum.sh.f81bVs/usr/share/locale /tmp/mkimage-yum.sh.f81bVs/usr/lib/gconv /tmp/mkimage-yum.sh.f81bVs/usr/lib64/gconv /tmp/mkimage-yum.sh.f81bVs/usr/bin/localedef /tmp/mkimage-yum.sh.f81bVs/usr/sbin/build-locale-archive
  • rm -rf /tmp/mkimage-yum.sh.f81bVs/usr/share/man /tmp/mkimage-yum.sh.f81bVs/usr/share/doc /tmp/mkimage-yum.sh.f81bVs/usr/share/info /tmp/mkimage-yum.sh.f81bVs/usr/share/gnome/help
  • rm -rf /tmp/mkimage-yum.sh.f81bVs/usr/share/cracklib
  • rm -rf /tmp/mkimage-yum.sh.f81bVs/usr/share/i18n
  • rm -rf /tmp/mkimage-yum.sh.f81bVs/var/cache/yum
  • mkdir -p --mode=0755 /tmp/mkimage-yum.sh.f81bVs/var/cache/yum
  • rm -rf /tmp/mkimage-yum.sh.f81bVs/sbin/sln
  • rm -rf /tmp/mkimage-yum.sh.f81bVs/etc/ld.so.cache /tmp/mkimage-yum.sh.f81bVs/var/cache/ldconfig
  • mkdir -p --mode=0755 /tmp/mkimage-yum.sh.f81bVs/var/cache/ldconfig
  • version=
  • for file in ‘"$target"/etc/{redhat,system}-release’
  • ‘[’ -r /tmp/mkimage-yum.sh.f81bVs/etc/redhat-release ‘]’
    ++ sed ‘s/^[^0-9]([0-9.]+).$/\1/’ /tmp/mkimage-yum.sh.f81bVs/etc/redhat-release
  • version=7.3
  • break
  • ‘[’ -z 7.3 ‘]’
  • tar --numeric-owner -c -C /tmp/mkimage-yum.sh.f81bVs .
  • docker import - RHEL7.3_vodacom:7.3
    invalid reference format