打包成docker启动之后自动关闭
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, javascript
- Domain
- devops
Research direction
Start by inspecting the Dockerfile referenced in the documentation and the container's package start command, then reproduce the behavior with docker run -p 7001:7001 egg-boilerplate. Check how egg-scripts start --daemon affects the container process and verify that the container stays running and serves port 7001.
Written by the indexing model from the issue text.
Description
第一,本地测试和部署都没有问题。
第二,复制粘贴文档中提供的dockerfile,设置没问题
第三,按提示打包成docker文件
但是,一启动就自动关闭,这是什么原因
docker run -p 7001:7001 egg-boilerplate
[email protected] start /usr/src/app
egg-scripts start --daemon --title=egg-server-
[egg-scripts] Starting egg application at /usr/src/app
[egg-scripts] Run node /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-
[egg-scripts] Save log file to /root/logs
[egg-scripts] Wait Start: 1...
[egg-scripts] egg started on http://127.0.0.1:7001
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eggjs/docker
Similar issues
-
Complexity: Small P-Feature: Projects page ready for merge team role: back end/devOps role: front end size: 0.25pt
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 67/100
bellingcat/toolkit#905 ·
-
self-care self-care:docs-build-time-investigator
Difficulty 2/5 Half a day Newbie friendliness 76/100
githubnext/gh-aw-cao#14191 ·
Maintainers usually reply within 1 day
-
effort:low impact:medium RAG status: auto-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mastra-ai/mastra#25229 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sugarlabs/musicblocks#8984 ·
Maintainers usually reply within 1 day