docker问题

  1. Job for docker.service failed because the control process exited with error
    配置镜像试试
  2. 端口问题
    docker port 容器id,都找不到映射,启动不要设置–name试试,或者–name “container_name”
  3. curl: (7) Failed connect to localhost:8000; 拒绝连接
    端口映射设置有问题,查看index.jsDockerfile,运行的命令比如:

    docker run -dp 4000:8000 koa-demo # 端口1是外部访问的:端口2内部应用启动的

  4. npm安装过程中间错误问题
    • npm fund 问题
      Dockerfile Run中,添加npm fund指令,输出查看具体是报什么错误
  5. 容器内部问题
    软件包依赖环境中的一些依赖。查看缺哪些依赖

    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
    
    其他可用源,网上自己找下就有。不保证一直有效,可能被墙被拒绝连接。
    dep 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
    
    问题:target packages is configured multiple times in
    源配置配多了。用一个就可以了,不用全部都加,注释掉提示中重复的那行。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值