FROM openjdk:8-jdk-alpine3.7
MAINTAINER QingFeng
VOLUME /aabb_20210626
ADD target/kubeblog.jar /kubeblog.jar
EXPOSE 5000
CMD ["sleep","3600"]
[root@master Final]# docker run -it kubeblog:2.0 sh
/ # df
Filesystem 1K-blocks Used Available Use% Mounted on
overlay 71645000 8369864 63275136 12% /
overlay 71645000 8369864 63275136 12% /
tmpfs 65536 0 65536 0% /dev
tmpfs 1937972 0 1937972 0% /sys/fs/cgroup
shm 65536 0 65536 0% /dev/shm
/dev/mapper/centos-root
71645000 8369864 63275136 12% /aabb_20210626
/dev/mapper/centos-root
71645000 8369864 63275136 12% /etc/resolv.conf
/dev/mapper/centos-root
71645000 8369864 63275136 12% /etc/hos