Closed samcro1967 closed 1 year ago
The current Dockerfile started failing to build on 11/12/2022. Here is the build output:
latest: Pulling from plugins/docker Digest: sha256:f200f24958d969e4b819a2d7564b45a519b2ffa8823fbc829fde06544e90a198 Status: Image is up to date for plugins/docker:latest + /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock --insecure-registry ****** Registry credentials or Docker config not provided. Guest mode enabled. + /usr/local/bin/docker version Client: Version: 20.10.14 API version: 1.41 Go version: go1.16.15 Git commit: a224086 Built: Thu Mar 24 01:45:09 2022 OS/Arch: linux/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.14 API version: 1.41 (minimum version 1.12) Go version: go1.16.15 Git commit: 87a90dc Built: Thu Mar 24 01:49:54 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.5.11 GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8 runc: Version: 1.0.3 GitCommit: v1.0.3-0-gf46b6ba2 docker-init: Version: 0.19.0 GitCommit: de40ad0 + /usr/local/bin/docker info Client: Context: default Debug Mode: false Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 20.10.14 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: false userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8 runc version: v1.0.3-0-gf46b6ba2 init version: de40ad0 Security Options: seccomp Profile: default cgroupns Kernel Version: 5.15.0-1031-azure Operating System: Alpine Linux v3.15 OSType: linux Architecture: x86_64 CPUs: 8 Total Memory: 31.12GiB Name: 58bab363bf2f ID: JY52:KJYW:TXFX:PD7Y:5F5E:GCVQ:GAVI:VDBM:EIVW:FCIW:T6F2:NTL3 Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: ****** 127.0.0.0/8 Live Restore Enabled: false Product License: Community Engine + /usr/local/bin/docker build --rm=true -f /drone/src/Dockerfile -t 27082a50dd03ce0e3d1afd92390ea2aa624e40f5 . --pull=true --label org.opencontainers.image.created=2023-01-20T07:03:36Z --label org.opencontainers.image.revision=27082a50dd03ce0e3d1afd92390ea2aa624e40f5 --label org.opencontainers.image.source=http://osu.gitea:3069/osuhickeys/container-web-tty.git --label org.opencontainers.image.url=http://osu.gitea:3069/osuhickeys/container-web-tty Sending build context to Docker daemon 42.67MB Step 1/9 : FROM alpine latest: Pulling from library/alpine 8921db27df28: Pulling fs layer 8921db27df28: Verifying Checksum 8921db27df28: Download complete 8921db27df28: Pull complete Digest: sha256:f271e74b17ced29b915d351685fd4644785c6d1559dd1f2d4189a5e851ef753a Status: Downloaded newer image for alpine:latest ---> 042a816809aa Step 2/9 : RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf ---> Running in 74f4b94c7ae6 The command '/bin/sh -c [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf' returned a non-zero code: 1 exit status 1
the latest alpine has added nsswitch.conf, that's why the docker file cannot be built successfully.
alpine
nsswitch.conf
I'll remove this line RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf.
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
The current Dockerfile started failing to build on 11/12/2022. Here is the build output: