这是我放的文件,根据同学们的改的

来源:6-3 compose实战

慕勒7123956

2018-02-02 10:56

https://github.com/inertiabeer/ghost_config

debug的时候最好不要加-d  

docker-compose up

然后看报错

如果出现了权限问题的话,看这个同学的回答

https://www.imooc.com/qadetail/240208

写回答 关注

9回答

  • airmusic
    2018-02-11 16:25:11
    已采纳

    谢谢大神

  • 末路伯爵
    2019-08-28 16:55:24

    我全部都是成功启动,但是访问80端口只显示nginx信息,没有ghost项目

  • 慕斯4644820
    2018-11-28 10:12:54

    为什么我还是报错:

    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


    xzc96 回复慕斯4644...

    一样的问题 老哥解决了没有

    2019-06-18 11:36:59

    共 2 条回复 >

  • zx96895
    2018-09-27 15:28:40
    66666

  • 燃到盛夏
    2018-08-02 23:33:14

    根据最新版本提交了一个 Pull Request,

    修正了    

    --    Dockfile 中 Copy 也要到新的目录 /var/lib/ghost/content/, 否则 docker-compose up 无法生效

    的问题

    慕勒7123...

    收到,一会就合并

    2018-08-03 08:10:35

    共 1 条回复 >

  • ligongbit
    2018-07-19 10:26:43

    感谢整理和分享,我今天运行了一下,发现总是502 gateway error, 翻别人答案才发现是Ghost版本升级为后,配置路径改变了,具体就是在ghost/ghost/文件夹下的Dockerfile里面,copy的目标路径不是视频里的 /var/lib/ghost/,而是/var/lib/ghost/content/。 修改完后就可以运行了。

  • 慕仰8426390
    2018-06-30 20:09:41

    66666

  • CNSDHH
    2018-04-06 23:48:07

    哈哈,我也给你加个star

  • 慕虎8669371
    2018-03-26 14:36:50

    哈哈哈,给你个star

Docker入门

再不学点Docker你就out啦!

97530 学习 · 253 问题

查看课程

相似问题