- Published on
docker初始化
- Authors
- Name
- Lif
避免僵尸进程
dump-init
使用FROM node:16 AS builder
RUN apt install dumb-init
...
...
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["node", "dist/main"]
tini
使用docker run --init .......
开启docker内部ssh
docker exec -it <containerName> bash
/etc/init.d/ssh start