qweqe417 我试了下这个 image,是没有装 envsubst
docker run --network=host -it node:18.13.0 bash
root@node1:/# envsubst
bash: envsubst: command not found
root@node1:/# apt-get update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [228 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB]
Fetched 8634 kB in 10s (833 kB/s)
Reading package lists... Done
root@node1:/# apt install gettext-base
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
gettext-base
0 upgraded, 1 newly installed, 0 to remove and 28 not upgraded.
Need to get 175 kB of archives.
After this operation, 675 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 gettext-base amd64 0.21-4 [175 kB]
Fetched 175 kB in 1s (128 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package gettext-base.
(Reading database ... 22790 files and directories currently installed.)
Preparing to unpack .../gettext-base_0.21-4_amd64.deb ...
Unpacking gettext-base (0.21-4) ...
Setting up gettext-base (0.21-4) ...
root@node1:/# env
env envsubst
root@node1:/# envsubst -V
envsubst (GNU gettext-runtime) 0.21
Copyright (C) 2003-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Bruno Haible.
你可以试试在 Dockerfile 中,装上这个 gettext-base