1yum?-y?install?epel-release????安装python?pip依赖
2yum?-y?install?python-pip????安装python?pip
3pip3?install?docker-compose????安装docker-compose
4
5docker-compose?--version
pip 安装失败
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.0/docker-compose- uname -s- uname -m-o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
上传 配置ssl 执行./prepare 执行 install.sh
重启
1#?docker-compose?down
2#?./prepare
3#?docker-compose?up?–d
账号 admin/Harbor12345
1FROM?java:8
2MAINTAINER?wangHongJie
3VOLUME?/tmp
4COPY?standard-pay-1.0.0.jar?/standard-pay-1.0.0.jar
5COPY?cert/*.crt?/cert/
6RUN?/bin/cp?/usr/share/zoneinfo/Asia/Shanghai?/etc/localtime?&&?echo?'Asia/Shanghai'?>/etc/timezone
7RUN?bash?-c?'touch?/standard-pay-1.0.0.jar'
8ENTRYPOINT?["java","-Djava.security.egd=file:/dev/./urandom","-jar","/standard-pay-1.0.0.jar"]
docker build -f DockerFile -t standard-pay:1.0 .
|