Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

打包成docker启动之后自动关闭

Open
#1 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eggjs/docker

All issues in eggjs/docker

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.