标签:test rom art config 名称 dock div pre 网上
1)写dockerfile (参考网上教程)
FROM centos:latest RUN mkdir /usr/netflow WORKDIR /usr/netflow COPY ./ . COPY lib/install_lib.sh /usr/bin/install_lib.sh RUN chmod +x /usr/bin/install_lib.sh CMD ["install_lib.sh"] COPY env_config.sh /usr/bin/env_config.sh RUN chmod +x /usr/bin/env_config.sh CMD ["env_config.sh"] COPY collect/start.sh /usr/bin/start.sh RUN chmod +x /usr/bin/start.sh CMD ["start.sh"]
2)制作容器命令
docker build -t 容器名称:标签 工作目录
eg:
docker build -t netflow:v1.0 .
标签:test rom art config 名称 dock div pre 网上
原文地址:https://www.cnblogs.com/xinfenglee/p/10730460.html