Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker 不能指定服务类型 #166

Open
cypggs opened this issue Apr 22, 2024 · 4 comments
Open

docker 不能指定服务类型 #166

cypggs opened this issue Apr 22, 2024 · 4 comments

Comments

@cypggs
Copy link

cypggs commented Apr 22, 2024

docker run --rm --name wechat-bot -v $(pwd)/config.js:/app/config.js -v $(pwd)/.env:/app/.env wechat-bot

[email protected] dev
node ./index.js

? 请先选择服务类型 (Use arrow keys)
❯ ChatGPT
Kimi
Xunfei %

@wangrongding
Copy link
Owner

wangrongding commented Apr 23, 2024

试试用这个

# 运行容器,创建交互式 TTY
docker run -itd --name my-container my-image

# 附加到容器并与之交互
docker attach my-container

@ljw98
Copy link

ljw98 commented May 12, 2024

一样情况,不清楚是否可以。env才多一个参数进行选择

@wangrongding
Copy link
Owner

可以的,这几天可能没空,大家有兴趣的可以提一个PR,我会很快合并

@wangrongding
Copy link
Owner

@cypggs @ljw98 已经支持了,更新最新代码

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants