问答详情
源自:6-3 compose实战

docker-compose up -d 报错

[root@iZwz917v57iioljd7xhprwZ ghost]# docker-compose up

ghost_db_1 is up-to-date

Starting ghost_ghost-app_1 ... 

Starting ghost_ghost-app_1 ... done

Starting ghost_nginx_1 ... 

Starting ghost_nginx_1 ... done

Attaching to ghost_db_1, ghost_ghost-app_1, ghost_nginx_1

ghost-app_1  | npm ERR! path /var/lib/ghost/package.json

ghost-app_1  | npm ERR! code ENOENT

ghost-app_1  | npm ERR! errno -2

ghost-app_1  | npm ERR! syscall open

ghost-app_1  | npm ERR! enoent ENOENT: no such file or directory, open '/var/lib/ghost/package.json'

ghost-app_1  | npm ERR! enoent This is related to npm not being able to find a file.

ghost-app_1  | npm ERR! enoent 

ghost-app_1  | 

ghost-app_1  | npm ERR! A complete log of this run can be found in:

ghost-app_1  | npm ERR!     /root/.npm/_logs/2019-05-16T10_43_50_801Z-debug.log

nginx_1      | 2019/05/16 10:43:51 [emerg] 1#1: unknown directive "worker" in /etc/nginx/nginx.conf:1

nginx_1      | nginx: [emerg] unknown directive "worker" in /etc/nginx/nginx.conf:1


提问者:qq_不打扰_0 2019-05-16 18:46

个回答

  • 慕仰802251
    2019-06-15 09:25:28

    你的nginx的配置文件应该也有问题