- Job for docker.service failed because the control process exited with error
配置镜像试试 - 端口问题
docker port 容器id,都找不到映射,启动不要设置–name试试,或者–name “container_name” - curl: (7) Failed connect to localhost:8000; 拒绝连接
端口映射设置有问题,查看index.js
,Dockerfile
,运行的命令比如:docker run -dp 4000:8000 koa-demo # 端口1是外部访问的:端口2内部应用启动的
- npm安装过程中间错误问题
- npm fund 问题
Dockerfile Run中,添加npm fund指令,输出查看具体是报什么错误
- npm fund 问题
- 容器内部问题
软件包依赖环境中的一些依赖。查看缺哪些依赖lbb ./node_modules/xxxx/xxx包 | grep “not” # 查找哪些依赖找不到。
可能需要更换debian的源
替换debian的源为阿里的源,然后安装chromium的依赖包。mv 执行备份一下自己原来的源。
其他可用源,网上自己找下就有。不保证一直有效,可能被墙被拒绝连接。deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb http://mirrors.aliyun.com/debian-security/ bullseye-security main deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
问题:target packages is configured multiple times indep http://ftp.de.debian.org/debian bullseye main contrib non-free https://pkgs.org/download/google-chrome-unstable # 或者 dep http://extras.getpagespeed.com/debian bullseye main contrib non-free
源配置配多了。用一个就可以了,不用全部都加,注释掉提示中重复的那行。
docker问题
最新推荐文章于 2024-09-30 10:37:42 发布