I've done all steps correctly but have an error. Maybe anybody can explain how to fix it?
C:\Users\User\Desktop\docker-esxi-master>docker-compose build --build-arg ISO_IMAGE=esxi-6-5.iso
Building esxi
Step 1/17 : FROM fedora:27 as stage
---> f89698585456
Step 2/17 : SHELL ["/usr/bin/bash", "-euxvc"]
---> Using cache
---> 2404b085cb79
Step 3/17 : RUN dnf install -y p7zip-plugins glibc.i686 zlib.i686 xz libxml2.i686; dnf clean all
---> Using cache
---> 3061462fd25e
Step 4/17 : ARG ISO_IMAGE=VMware-VMvisor-Installer-201701001-4887370.x86_64.iso
---> Using cache
---> c04a1d1d9f9b
Step 5/17 : ADD ${ISO_IMAGE} /esxi.iso
---> cc444d77a9a5
Step 6/17 : RUN 7z x /esxi.iso -o/esxi_gzip; zforce /esxi_gzip/* || :; mkdir -p /esxi_gunzip; for x in /esxi_gzip/*.gz; do name="$(gzip -l -N --quiet "${x}" | sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||')"; if [ "${name}" = "/esxi_gzip/" ]; then zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}")"; else zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}").$(basename ${name##*.})"; fi; done
---> Running in 0035eb3ec2c9
7z x /esxi.iso -o/esxi_gzip; zforce /esxi_gzip/* || :; mkdir -p /esxi_gunzip; for x in /esxi_gzip/*.gz; do name="$(gzip -l -N --quiet "${x}" | sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||')"; if [ "${name}" = "/esxi_gzip/" ]; then zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}")"; else zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}").$(basename ${name##*.})"; fi; done
+ 7z x /esxi.iso -o/esxi_gzip
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,2 CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (806EA),ASM,AES-NI)
Scanning the drive for archives:
1 file, 391405568 bytes (374 MiB)
Extracting archive: /esxi.iso
--
Path = /esxi.iso
Type = Iso
Physical Size = 391405568
Created = 2017-02-18 13:41:31
Modified = 2017-02-18 13:41:31
Everything is Ok
Folders: 47
Files: 152
Size: 390664328
Compressed: 391405568
+ zforce /esxi_gzip/README.txt /esxi_gzip/SYSTEMS.txt /esxi_gzip/busybox-1.22.1 /esxi_gzip/ccid-1.4.7 /esxi_gzip/e2fsprogs-1.42.6 /esxi_gzip/embedded_host_client-dev /esxi_gzip/esxboot-2.0.0 /esxi_gzip/gcc-4.8.4 /esxi_gzip/gdb-7.8.1 /esxi_gzip/glib-2.26.0 /esxi_gzip/glibc-2.12.2 /esxi_gzip/gpxe-0.9.7 /esxi_gzip/hwinfo-18.1 /esxi_gzip/jansson-2.3 /esxi_gzip/kbd-1.08-10.6 /esxi_gzip/libfat-4.03 /esxi_gzip/libipmi-4.5 /esxi_gzip/libmspack-0.5alpha /esxi_gzip/libusb-1.0.9 /esxi_gzip/libxml2-2.9.3 /esxi_gzip/libxml2-2.9.4 /esxi_gzip/libxslt-1.1.28 /esxi_gzip/linux-headers-3.0.27 /esxi_gzip/mbedtls-1.3.10 /esxi_gzip/mpi-bindings-pywbem-0.4.0 /esxi_gzip/mtools-3.9.10 /esxi_gzip/ntfsprogs-2.0.0 /esxi_gzip/ntp-4.2.8p8 /esxi_gzip/omc-1.0.8 /esxi_gzip/open-iscsi-2.0-865 /esxi_gzip/parted-2.4 /esxi_gzip/pcsc-lite-1.8.5 /esxi_gzip/pyparted-1.8.2 /esxi_gzip/pyparted-3.10.7 /esxi_gzip/pywbem-0.7.0 /esxi_gzip/rapidjson-0.1 /esxi_gzip/refit-0.14 /esxi_gzip/sblim-cmpi-2.0.1 /esxi_gzip/sblim-sfcb-1.3.7 /esxi_gzip/sblim-sfcc-2.2.1 /esxi_gzip/syslinux-3 /esxi_gzip/urlgrabber-3.10.1 /esxi_gzip/urwid-1.0.2 /esxi_gzip/usbutils-006 /esxi_gzip/vmkdrivers-gpl /esxi_gzip/weasel-1.0 /esxi_gzip/xz-utils-5.2.2
zforce: /esxi_gzip/busybox-1.22.1 not a file
zforce: /esxi_gzip/ccid-1.4.7 not a file
zforce: /esxi_gzip/e2fsprogs-1.42.6 not a file
zforce: /esxi_gzip/embedded_host_client-dev not a file
zforce: /esxi_gzip/esxboot-2.0.0 not a file
zforce: /esxi_gzip/gcc-4.8.4 not a file
zforce: /esxi_gzip/gdb-7.8.1 not a file
zforce: /esxi_gzip/glib-2.26.0 not a file
zforce: /esxi_gzip/glibc-2.12.2 not a file
zforce: /esxi_gzip/gpxe-0.9.7 not a file
zforce: /esxi_gzip/hwinfo-18.1 not a file
zforce: /esxi_gzip/jansson-2.3 not a file
zforce: /esxi_gzip/kbd-1.08-10.6 not a file
zforce: /esxi_gzip/libfat-4.03 not a file
zforce: /esxi_gzip/libipmi-4.5 not a file
zforce: /esxi_gzip/libmspack-0.5alpha not a file
zforce: /esxi_gzip/libusb-1.0.9 not a file
zforce: /esxi_gzip/libxml2-2.9.3 not a file
zforce: /esxi_gzip/libxml2-2.9.4 not a file
zforce: /esxi_gzip/libxslt-1.1.28 not a file
zforce: /esxi_gzip/linux-headers-3.0.27 not a file
zforce: /esxi_gzip/mbedtls-1.3.10 not a file
zforce: /esxi_gzip/mpi-bindings-pywbem-0.4.0 not a file
zforce: /esxi_gzip/mtools-3.9.10 not a file
zforce: /esxi_gzip/ntfsprogs-2.0.0 not a file
zforce: /esxi_gzip/ntp-4.2.8p8 not a file
zforce: /esxi_gzip/omc-1.0.8 not a file
zforce: /esxi_gzip/open-iscsi-2.0-865 not a file
zforce: /esxi_gzip/parted-2.4 not a file
zforce: /esxi_gzip/pcsc-lite-1.8.5 not a file
zforce: /esxi_gzip/pyparted-1.8.2 not a file
zforce: /esxi_gzip/pyparted-3.10.7 not a file
zforce: /esxi_gzip/pywbem-0.7.0 not a file
zforce: /esxi_gzip/rapidjson-0.1 not a file
zforce: /esxi_gzip/refit-0.14 not a file
zforce: /esxi_gzip/sblim-cmpi-2.0.1 not a file
zforce: /esxi_gzip/sblim-sfcb-1.3.7 not a file
zforce: /esxi_gzip/sblim-sfcc-2.2.1 not a file
zforce: /esxi_gzip/syslinux-3 not a file
zforce: /esxi_gzip/urlgrabber-3.10.1 not a file
zforce: /esxi_gzip/urwid-1.0.2 not a file
zforce: /esxi_gzip/usbutils-006 not a file
zforce: /esxi_gzip/vmkdrivers-gpl not a file
zforce: /esxi_gzip/weasel-1.0 not a file
zforce: /esxi_gzip/xz-utils-5.2.2 not a file
+ :
+ mkdir -p /esxi_gunzip
+ for x in /esxi_gzip/*.gz
++ gzip -l -N --quiet '/esxi_gzip/*.gz'
++ sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||'
gzip: /esxi_gzip/*.gz: No such file or directory
+ name=
+ '[' '' = /esxi_gzip/ ']'
+ zcat '/esxi_gzip/*.gz'
++ basename '/esxi_gzip/*'
++ basename
basename: missing operand
Try 'basename --help' for more information.
gzip: /esxi_gzip/*.gz: No such file or directory
ERROR: Service 'esxi' failed to build: The command '/usr/bin/bash -euxvc 7z x /esxi.iso -o/esxi_gzip; zforce /esxi_gzip/* || :; mkdir -p /esxi_gunzip; for x in /esxi_gzip/*.gz; do name="$(gzip -l -N --quiet "${x}" | sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||')"; if [ "${name}" = "/esxi_gzip/" ]; then zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}")"; else zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}").$(basename ${name##*.})"; fi; done' returned a non-zero code: 1
I've done all steps correctly but have an error. Maybe anybody can explain how to fix it?