docker-compose up -d 報(bào)錯(cuò)
[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
2019-06-15
你的nginx的配置文件應(yīng)該也有問題