FROM docker.io/node:16.13 MAINTAINER clay RUN npm install -g [email protected] RUN npm install pm2 -g RUN mkdir -p /node/claystack COPY claystack-master /node/clay WORKDIR /node/clay ENV LANG C.UTF-8 EXPOSE 3001 CMD ["sh","pm2.sh"]
因为要执行两个 pm2 所以写了个 pm2.sh 放两个命令在里面 启动容器的 docker run -itd 镜像名称:标签 /bin/bash CMD 没有执行,怎么解决