使用ubuntu封装镜像时解决中文乱码问题和时区问题
RUN set -x \ && apt-get install -y language-pack-zh-hans \ && echo 'export LANG=LANG="zh_CN.ut...
RUN set -x \ && apt-get install -y language-pack-zh-hans \ && echo 'export LANG=LANG="zh_CN.ut...
在设置之前,必须弄懂ldap里面的几个名词 cn、ou、dc、dn(自行百度) dn包含前三个,下面就是一个dn (uid=mcc)cn=student,ou=chuanda,dc=chengdu,dc=sichuan,dc=china 作...
适用于新手学习,生产环境需要优化 FROM centos:7#继承centos ADD epel.repo /etc/yum.repos.d#将epel源文件,拷贝到容器/etc/yum.repos.d,ADD相比COPY,还带压缩解压 R...
实例:vi test.yml --- - hosts: tx remote_user: lighthouse tasks: - name: df shell: df -h register: shell_result - debug: va...
一个简单的flask项目部署到Docker的过程 Dockerfile #基于的基础镜像 FROM python:3 #代码添加到code文件夹 ADD ./flask_demo /usr/src/app # 设置app文件夹是工作目录 W...
纯docker迁移没啥好说的,直接cp吧 但是在k8s环境下直接cp会有问题 不信你试试,已知的情况就是calico会启动不了。当时为了这个坑一个晚上没睡成觉。。。。 定义data-root 本例配置文件 cat /etc/docker/d...
背景:使用npm下载时,出现错误Unexpected end of JSON input while parsing near··· 解决方法:先清除缓存,再重新安装 清除缓存:运行 npm cache clean --force 重新安装...
CentOS系统中有两个日志服务,分别是传统的 rsyslog 和 systemd-journal # ls -l /etc/logrotate.d/ -rw-r--r-- 1 root root 91 Apr 11 2018 bootlo...
ERROR: UPGRADE FAILED: ANOTHER OPERATION (INSTALL/UPGRADE/ROLLBACK) IS IN PROGRESS 当使用helm升级一个应用时,出现这样的错误,表明此时最后一次升级未成功,...
本周在部署服务时,遇到了一个错误。因为不方便截图,这边只说明一下错误提示。我这里的网络为calico,具体错误为: error in getting result from AddNetworkList: failed to allocat...