搭建docker可视化私有镜像仓库harbor
Project Harbor is an enterprise-class registry server that stores and distributes Docker images. Harbor extends the open source Docker Distribution by adding the functionalities usually required by an...
Continue reading >>Project Harbor is an enterprise-class registry server that stores and distributes Docker images. Harbor extends the open source Docker Distribution by adding the functionalities usually required by an...
Continue reading >>1. 安装docker-ce(可参考:CentOS7 yum安装docker1.13.1及docker-compose)
Continue reading >>报错信息:
su: /bin/bash: Resource temporarily unavailable
打Dockerfile时执行如下命令即可:
sed -i 's/^*/#*/g' /etc/security/limits.d/90-nproc.conf
echo "* soft core&n...
Continue reading >>在Dockerfile中添加如下一条即可:
RUN echo "export PS1='[\u@\H \W]\\$ '" >> /etc/profile
配合ENV PS1 "[\u@\H \W]\\$ "在所有用户下都会生效(注意要用单引号,不能使用双引号)
PS1使用方法:
&nbs...
Continue reading >>最近一段时间弄了下Dockerfile,实践中也发现了不少问题,总结如下:
1. Java环境变量不生效的问题:
启动容器不同于系统完整启动流程,当容器运行后不会执行source /etc/profile命令,即使在/etc/profile添加环境变量也不会生效,可以使用ENV参数在Dockerfile中定义,也可以使用entrypoint在脚本里执行添加环境变量的命令。
Dockerfile不是she...
Continue reading >>