Closed vincetrain closed 1 day ago
You can see in the Dockerfile that it installs bash, so if it complains that bash is not available, something must have gone wrong during build.
I have a suspicion your problem is not related to this container at all, but Im not sure what is going wrong in your case.
Yeah, it's puzzling because pulling the image directly from Docker Hub works fine, but building it doesn't.
Here is what my build logs output, maybe this could help identify the problem if you don't mind helping me look through it...
[internal] load build definition from Dockerfile
transferring 671/0 0.01
[internal] load metadata for docker.io/library/alpine:edge
[internal] load .dockerignore
[internal] load build context
transferring 58/0 0.002
[1/4] FROM docker.io/library/alpine:edge@sha256:8431297eedca8df8f1e6144803c6d7e057ecff2408aa6861213cb9e507acadf8
resolve docker.io/library/alpine:edge@sha256:8431297eedca8df8f1e6144803c6d7e057ecff2408aa6861213cb9e507acadf8 0/0 0.014
[2/4] RUN set -eu && apk --no-cache add tini bash samba tzdata shadow && addgroup -S smb && rm -f /etc/samba/smb.conf && rm -rf /tmp/* /var/cache/apk/*
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/62) Installing ncurses-terminfo-base (6.5_p20241006-r3)
(2/62) Installing libncursesw (6.5_p20241006-r3)
(3/62) Installing readline (8.2.13-r0)
(4/62) Installing bash (5.2.37-r0)
Executing bash-5.2.37-r0.post-install
(5/62) Installing gmp (6.3.0-r2)
(6/62) Installing nettle (3.10-r1)
(7/62) Installing libunistring (1.2-r0)
(8/62) Installing libidn2 (2.3.7-r0)
(9/62) Installing libffi (3.4.6-r0)
(10/62) Installing libtasn1 (4.19.0-r2)
(11/62) Installing p11-kit (0.25.5-r2)
(12/62) Installing gnutls (3.8.8-r0)
(13/62) Installing icu-data-en (74.2-r0)
Executing icu-data-en-74.2-r0.post-install
*
* If you need ICU with non-English locales and legacy charset support, install
* package icu-data-full.
*
(14/62) Installing libgcc (14.2.0-r4)
(15/62) Installing libstdc++ (14.2.0-r4)
(16/62) Installing icu-libs (74.2-r0)
(17/62) Installing talloc (2.4.2-r1)
(18/62) Installing tevent (0.16.1-r0)
(19/62) Installing samba-util-libs (4.20.5-r0)
(20/62) Installing libwbclient (4.20.5-r0)
(21/62) Installing libcap2 (2.70-r0)
(22/62) Installing jansson (2.14-r4)
(23/62) Installing gdbm (1.24-r0)
(24/62) Installing libsasl (2.1.28-r8)
(25/62) Installing libldap (2.6.8-r0)
(26/62) Installing lmdb (0.9.33-r0)
(27/62) Installing tdb-libs (1.4.10-r0)
(28/62) Installing ldb (2.9.1-r0)
(29/62) Installing popt (1.19-r4)
(30/62) Installing samba-libs (4.20.5-r0)
(31/62) Installing samba-common (4.20.5-r0)
(32/62) Installing acl-libs (2.3.2-r1)
(33/62) Installing acl (2.3.2-r1)
(34/62) Installing skalibs-libs (2.14.3.0-r0)
(35/62) Installing utmps-libs (0.1.2.3-r2)
(36/62) Installing linux-pam (1.6.1-r1)
(37/62) Installing libauth-samba (4.20.5-r0)
(38/62) Installing dbus-libs (1.14.10-r4)
(39/62) Installing libintl (0.22.5-r0)
(40/62) Installing avahi-libs (0.8-r19)
(41/62) Installing samba-common-server-libs (4.20.5-r0)
(42/62) Installing samba-client-libs (4.20.5-r0)
(43/62) Installing cups-libs (2.4.11-r0)
(44/62) Installing liburing (2.8-r0)
(45/62) Installing samba-server (4.20.5-r0)
(46/62) Installing libbz2 (1.0.8-r6)
(47/62) Installing libexpat (2.6.4-r0)
(48/62) Installing lz4-libs (1.10.0-r0)
(49/62) Installing xz-libs (5.6.3-r0)
(50/62) Installing zstd-libs (1.5.6-r1)
(51/62) Installing libarchive (3.7.7-r0)
(52/62) Installing libformw (6.5_p20241006-r3)
(53/62) Installing libpanelw (6.5_p20241006-r3)
(54/62) Installing libsmbclient (4.20.5-r0)
(55/62) Installing samba-client (4.20.5-r0)
(56/62) Installing samba-common-tools (4.20.5-r0)
(57/62) Installing samba (4.20.5-r0)
(58/62) Installing libmd (1.1.0-r0)
(59/62) Installing libbsd (0.12.2-r0)
(60/62) Installing shadow (4.16.0-r1)
(61/62) Installing tini (0.19.0-r3)
(62/62) Installing tzdata (2024b-r1)
Executing busybox-1.36.1-r31.trigger
OK: 67 MiB in 76 packages
[3/4] COPY --chmod=755 samba.sh /usr/bin/samba.sh
[4/4] COPY --chmod=664 smb.conf /etc/samba/smb.default
exporting to image
exporting layers 0/0 2.137
exporting manifest sha256:2f39cc33d61d6116aa9edf709190a647db7d0c2184eb2dbca07b07198def2675 0/0 0.008
exporting config sha256:71c7b78cda3d872af5c54c194d06889ee38dcaa60e4a757f74322de7db980ef5 0/0 0.007
exporting attestation manifest sha256:ca509c161e004f093891b7bb4d8ac3c77279dac6e112832c52814d5de4166a79 0/0 0.015
exporting manifest list sha256:eecbafab219a83df262e3c26b5ea329352f27ac09e6ae86153a5c3865edca8c9 0/0 0.01
naming to [registry]/samba:latest 0/0 0.001
unpacking to [registry]/samba:latest 0/0 0.381
Nevermind, fixed by building with buildkit. Sorry about that.
Hey, I was looking into building my own image of this to start modifying it to my own needs, but upon building using the resources provided in this repository, I am unable to run the docker image.
This is the command I am building with:
docker build samba -t [my registry ip]/samba:latest --no-cache
This is the error I get upon running the image I built:
This is happening with no modifications made to any file, directly after cloning this repository.