2 個答案
- 最新
- 最多得票
- 最多評論
0
By default, systemd is not installed in the Amazon Linux 2 container image.
Try this:
yum install -y /usr/bin/systemctl; systemctl --version
已回答 4 年前
0
This is a non-fully tested solution, but solves me the problem on amazonlinux:1
who it is under EOL extended window time (consider this solution as your own risk):
cat /etc/os-release | grep CPE_NAME
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
curl -o /usr/local/bin/systemctl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py\
&& chmod +x /usr/local/bin/systemctl
systemctl --version
systemd 219
- via systemctl.py 1.5.7113
-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP -BLKID -ELFUTILS -KMOD -IDN
已回答 1 年前
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 10 個月前
- AWS 官方已更新 1 年前