logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

nginx docker官方镜像使用自定义启动命令启动失败

官方参考资料默认启动命令nginx -g daemon off;If you add a custom CMD in the Dockerfile, be sure to include -g daemon off; in the CMD in order for nginx to stay in the foreground, so that Docker can track the proce

#docker
docker容器与宿主机同步时间

只读挂载宿主机localtime文件即可-v /etc/localtime:/etc/localtime:ro

#docker
springsecurity 允许跨域IFRAME引用

WebSecurityConfigurerAdapter@Overrideprotected void configure(HttpSecurity http) throws Exception {...http.headers().frameOptions().disable();...}

#spring
MYSQL 一次更新BLOB数据报错SQLSTATE(08S01)处理

插入包含blob字段的记录时,blob数据超过一定大小(小于max_allowed_packet)时提交一段时间后报错如下:2021-03-02 13:44:59.392 [http-nio-auto-1-exec-10] WARNcom.zaxxer.hikari.pool.ProxyConnection - HikariPool-1 - Connection com.mysql.cj.jdbc

#mysql
Teamcenter RAC 查找数据集并获取数据集中文件

// 根据名称查找数据集合TCComponentDatasetType datasetType = (TCComponentDatasetType) TCUtil.GetSession().getTypeComponent("Dataset");TCComponentDataset dataset = datasetType.find(datasetName);// 根据文件类型,文件名获取文件F

进入docker容器命令行

docker exec -it [containerid] /bin/bash

#docker
windows kubectl安装配置

官方文档直接下载https://dl.k8s.io/release/v1.22.0/bin/windows/amd64/kubectl.exe将kubeconfig放到如下路径C:\User\{当前用户}.kube\config注:使用命令创建目录mkdir .kube

#windows#kubernetes
k8s kubectl 修改PV回收策略

linuxkubectl patch pv ***PVNAME*** -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}'windowskubectl patch pv ***PVNAME*** -p "{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}"

#k8s#kubernetes
k8s pod无限重启 报错Back-off restarting failed container

现象K8S POD无限重启报错Back-off restarting failed container原因由于启动容器后,容器内部没有常驻的前台进程,导致容器启动成功后即退出,从而进行了持续的重启。例如ubuntu这类操作系统容器,nginx这种默认后台执行的容器解决操作系统容器增加启动命令配置,例如command: [ "/bin/bash", "-c", "--" ]args: [ "whil

#docker#k8s
k8s kubectl 在容器中执行命令 进入容器SHELL

执行命令kubectl -n <namespace> exec -it <POD> -c <CONTAINER> -- <COMMAND>进入shellkubectl -n <namespace> exec -it <POD> -c <CONTAINER> -- /bin/sh

#容器#运维
到底了