标签:server serve 问题 code poi host vim 镜像 dock
Dockerfile实现:
FROM centos:7.2.1511 MAINTAINER hongdada "hongdaqi159505@gmail.com" WORKDIR /home RUN yum install -y wget gcc && rpm --rebuilddb && yum install -y tar && wget http://download.redis.io/redis-stable.tar.gz && \ tar -xvzf redis-stable.tar.gz && mv redis-stable/ redis && rm -f redis-stable.tar.gz && yum clean all WORKDIR /home/redis RUN make && make install EXPOSE 6379 ENTRYPOINT redis-server /home/redis/redis.conf CMD ["redis-server"]
利用这个Dockerfile构建镜像命令:
[root@localhost tomcat]# docker build -t redis:v1 .
构建执行结果:
可能出现的问题:
yum -y install gcc automake autoconf libtool make
参考:
https://blog.csdn.net/chenyufeng1991/article/details/78766062
标签:server serve 问题 code poi host vim 镜像 dock
原文地址:https://www.cnblogs.com/hongdada/p/9268865.html