deemoe

[已解决] 多个 dev container 同时运行时 codex 拓展无法登录

  •  
  •   deemoe · Oct 26, 2025 · 3170 views
    This topic created in 223 days ago, the information mentioned may be changed or developed.

    一直以来我的开发工作都是在远程服务器里的 dev container 做的,没遇到什么太大问题,但这次想 vibe coding 一下工作代码的时候却发现死活登不上去,卡在如下界面:

    Sign in to Codex with ChatGPT
    ************@icloud.com
    By continuing, ChatGPT will share your name, email, and profile picture with Codex to link your account.
    
    Codex will not receive your chat history.
    

    之前 vibe 自己的小玩具的时候登录可是一点问题也没有!而且这个问题出现的有点随机,有的时候会遇到有的时候不会遇到。

    事情的转机出现在刚刚——我点开 vscode 的转发端口列表准备连接 No VNC 查看 GUI 输出的时候,我看到了一个可疑的无名端口转发!稍稍研究我就发现,在该端口( 1455 )正常转发的 dev container 内可以正常登录 codex ,但如果某个 dev container 是后面打开的导致 vscode 自动顺延该端口转发(变成 1456 )就无法登录 codex !

    那解决方法也很明朗了,手动修改一下端口转发就好了。实测这个端口应该只是用来登录的,后续不会再用到了。撒花🎉!

    2 replies    2025-10-26 16:44:45 +08:00
    deemoe
        2
    deemoe  
    OP
       Oct 26, 2025
    @whoami9426 哈哈,感觉这个方法不如我的来的方便🤣
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2719 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 15:27 · PVG 23:27 · LAX 08:27 · JFK 11:27
    ♥ Do have faith in what you're doing.