- Newest
- Most votes
- Most comments
Hi,
systemctl by default is not installed in the docker image. You can try to start the http service using something like /usr/sbin/httpd -DFOREGROUND. Dockerfile could be updated to
FROM amazonlinux:latest
RUN yum install httpd -y
ENTRYPOINT ["/usr/sbin/httpd"]
CMD ["-DFOREGROUND"]
--Syd
Hello.
How about acquiring the Amazon Linux 2023 Docker image from ECR using the steps in the document below?
https://docs.aws.amazon.com/linux/al2023/ug/base-container.html
Thanks! I've tried both the Docker Hub image, and the one from public.ecr.aws. Both seem to have the issue.
Hi,
You can also download the official AL2023 Docker image directly from Docker Hub if more convenient for you.
It's there: https://hub.docker.com/_/amazonlinux
Please, note the "Docker Official Image" badge: it means that it a curated image on which you can rely.
Best,
Didier
That is the one that's not working. See additions to the question.
Relevant content
- asked 2 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 18 days ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
Hey Syd, that keeps it running, but I can't attach to it. Any suggestions?
If you mean how to attach to running container, you need to use docker exec from another terminal.
You can get the container id from docker ps output