Base image for fast create app-containers
- Systemd enabled by official documentation: https://hub.docker.com/_/centos/
- Based on latest CentOs 7 image
- Include next main packages:
systemd
as servicetomcat
7 (+tomcat-native
) run as service (and use UTF-8 encoding).
- By default exposed port
8080
https://hub.docker.com/r/taskdata/docker-centos-7-systemd-tomcat/
Example of Dockerfile
for raw war
files:
FROM taskdata/docker-centos-7-systemd-tomcat
MAINTAINER Pavel Alexeev
COPY *.war /var/lib/tomcat/webapps/
If you are using rpm (recommended):
FROM taskdata/docker-centos-7-systemd-tomcat
MAINTAINER Pavel Alexeev
COPY *.rpm /
RUN yum install -y /*.rpm \
&& yum clean all
Unfortunately to run it in un-privileged mode you must provide volume /sys/fs/cgroup
from host. F.e.:
docker run -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name lesegais docreg.some.host/lesegais:latest
Then you may access you application.