/ Ghost

Ghost:修改docker-compose配置文件,快速将Ghost从1.8.0升级2.1.0

  • 进入ghost目录,docker-compose down

  • 修改dockercompose的ghost版本号为2.1.1

  • docker-compose up -d

  • 打开网站发现在升级中,等一段时间后刷新就好了,我等不及就重启服务器了,没啥问题

    [ghost@nginx ghost]$ docker-compose down
    Stopping ghost ... done
    Removing ghost ... done
    [ghost@nginx ghost]$ vi docker-compose.yml
    [ghost@nginx ghost]$ docker-compose up -d
    Pulling ghost (ghost:2.1.1)...
    Trying to pull repository docker.io/library/ghost ...
    2.1.1: Pulling from docker.io/library/ghost
    57936531d1ee: Pull complete
    b186cf19f9ed: Pull complete
    eadbf8312262: Pull complete
    cf528b18b6ce: Pull complete
    075c4f074e90: Pull complete
    04fbcf905a62: Pull complete
    663ed99e2b79: Pull complete
    2e3c31f24ef1: Pull complete
    174670bcf52a: Pull complete
    eb9b7df642dd: Pull complete
    Digest: sha256:e67b8b29b3be4c2623c42bff399ebc4f50799fb942346263abdd2a9b742d7e36
    Creating ghost ...
    Creating ghost ... done
    [ghost@nginx ghost]$ docker ps -a
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    09d21a3d0d30 ghost:2.1.1 "docker-entrypoint.sh" 7 seconds ago Up 5 seconds 2368/tcp ghost
    e54c2fd62da6 oddrationale/docker-shadowsocks "/usr/local/bin/ssser" 8 days ago Up 8 days 0.0.0.0:49999->1080/tcp shadowsocks_server
    1d0902317e9a xwiki:10.3-mysql-tomcat "docker-entrypoint.sh" 3 months ago Up 3 months 8080/tcp xwiki
    7a1cb93e8de7 nginx:1.12.2 "nginx -g 'daemon off" 3 months ago Up 5 weeks 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx
    0353194eb70f mariadb:10.3.6 "docker-entrypoint.sh" 4 months ago Up 3 months 0.0.0.0:63306->3306/tcp mariadb
    bbefd8b6c9db mediawiki:1.30.0 "docker-php-entrypoin" 4 months ago Up 3 months 80/tcp mediawiki