logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

docker容器中运行jar 出现invalid or corrupt jarfile

有一台测试的linux机器可以使用,所以先在本地打包生成xxx.jar,然后拷贝到有docker环境的linux机器上,生成docker镜像,以及使用镜像做成docker容器。中间传输别的文件的时候把这个改成了file(文件),使用file方式传输jar,尝试将这边的传输方式改成default,就能够正常跑了。2)第二步的拷贝,使用dockerfile拷贝,正常情况下,要么命令错误,没有拷贝到容器

文章图片
#docker#jar#容器
ERROR: Service “cerebro“ uses an undefined network

1,问题:在docker-compose.yml中定义了一个cerebro服务,指定了下面的网络services:cerebro:image: lmenezes/cerebro:0.8.3container_name: cerebroports:- "9000:9000"command:- -Dhosts.0.host=http://elasticsearch:9200networks:- es7

docker-compose.yml 和 docker-compose.override.yml

背景最近用到docker-compose来管理多个docker容器构成的服务碰到了docker-compose.yml 和 docker-compose.override.yml这两个要怎么用,之前不是很明白,看了手册之后才有点知道现在整理一下官方文档:https://docs.docker.com/compose/reference/overview/docker-compose -f xxx.

#docker
git clone 出现 fatal: The remote end hung up unexpectedly(HTTP code = 422)

【背景】搭建好了服务器之后,想要在另外本地机器上git clone下来。执行git clone命令之后,出现了下面的错误。[root@localhost git_test]# git clonehttp://user:pass@gitlab.test.com/test_group/test_pro git_test_pro正克隆到 'git_test_pro'...error: RPC faile

#git
Andriod Studio不支持项目指定的Gradle插件版本

项目指定Gradle插件版本和Andriod Studio支持的插件版本不匹配问题

文章图片
#gradle
git clone 出现 fatal: The remote end hung up unexpectedly(HTTP code = 422)

【背景】搭建好了服务器之后,想要在另外本地机器上git clone下来。执行git clone命令之后,出现了下面的错误。[root@localhost git_test]# git clonehttp://user:pass@gitlab.test.com/test_group/test_pro git_test_pro正克隆到 'git_test_pro'...error: RPC faile

#git
docker容器安装过程中出现mapping values are not allowed in this context

想要安装apm-server,用docker ps -a查看容器状态,发现容器创建之后不能启动,直接是exited的状态(Exited (1) 12 minutes ago)使用docker logs 容器ID 查看容器的log,发现出现下面的错误:Exiting: error loading config file: yaml: line 12: mapping values are not a

#docker
sqlite3 查看数据库内容的相关操作

数据库Sqlite下面的相关操作:1,进入数据库操作界面: sqlite3 数据库名2,查看所有表名: .tables3,查看表内容:select * from 表名4,查看所有表的结构:select * from sqlite_master WHERE type = “table”[root@xx db]# sqlite3 sampledb.db.sqlite3说明...

#sqlite
到底了