Open xhr2 opened 2 months ago
使用我的命令部署docker不会有问题
使用我的命令部署docker不会有问题
试过了,哥
compose 我命令里面里面包含了环境,你这个就是缺特定环境变量
jd_autologin# docker-compose up -d
WARN[0000] jd_autologin/docker-compose.yml: the attribute version
is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 9/9
✔ jd_autologin Pulled 40.5s
✔ ca4e5d672725 Already exists 0.0s
✔ 30b93c12a9c9 Already exists 0.0s
✔ 10d643a5fa82 Already exists 0.0s
✔ d6dc1019d793 Already exists 0.0s
✔ 5afcd2745721 Already exists 0.0s
✔ b5dbe4a95907 Already exists 0.0s
✔ 26b10780b7b0 Already exists 0.0s
✔ d2f126f49360 Already exists 0.0s
[+] Running 1/1
✔ Container jd_autologin Started
我直接用这个执行无法访问12345端口,构建镜像和直接执行可以访问12345端口,但是就会报上面的错误,还请大佬指点
解决了,错误的地方在headless,默认传递进来的False,改成True就没事了 browser = await launch( { "executablePath": chromium_path, "headless": True, "args": ( "--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage", "--disable-gpu", "--disable-software-rasterizer", ), } )
sorry,忘记模式修改回撤了,已改正
我在Windows执行正常,Linux(Ubuntu 22.04.4 LTS x86_64)上执行就提示这个
login 判断初始化浏览器 选择登录 选择密码登录 正在登录 *****的账号 Browser closed unexpectedly: