慕勒7123956
2018-02-02 10:56
https://github.com/inertiabeer/ghost_config
debug的时候最好不要加-d
docker-compose up
然后看报错
如果出现了权限问题的话,看这个同学的回答
https://www.imooc.com/qadetail/240208
谢谢大神
我全部都是成功启动,但是访问80端口只显示nginx信息,没有ghost项目
为什么我还是报错:
db_1 | 2018-11-28T02:10:27.315197Z 0 [Note] Event Scheduler: Loaded 0 events
db_1 | 2018-11-28T02:10:27.315363Z 0 [Note] mysqld: ready for connections.
db_1 | Version: '5.7.15' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
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/2018-11-28T02_10_27_818Z-debug.log
ghost_ghost-app_1 exited with code 254
根据最新版本提交了一个 Pull Request,
修正了
-- Dockfile 中 Copy 也要到新的目录 /var/lib/ghost/content/, 否则 docker-compose up 无法生效
的问题
感谢整理和分享,我今天运行了一下,发现总是502 gateway error, 翻别人答案才发现是Ghost版本升级为后,配置路径改变了,具体就是在ghost/ghost/文件夹下的Dockerfile里面,copy的目标路径不是视频里的 /var/lib/ghost/,而是/var/lib/ghost/content/。 修改完后就可以运行了。
66666
哈哈,我也给你加个star
哈哈哈,给你个star
Docker入门
97530 学习 · 253 问题
相似问题