Updating a Ghost Docker Container in Reclaim Cloud

Опубликовано: 05 Январь 2022
на канале: Reclaim Hosting
130
1

In this video we quickly demonstrate the commands for updating a Ghost Docker Container in Reclaim Cloud. You can find the specific commands referenced in the video below. For information on how to spin-up a Docker Container in Reclaim Cloud see this video:    • Spinning Up a Ghost Docker Container  

Run the following command to see what user Ghost is installed as, keep in mind Ghost is installed at /var/lib/ghost using the official Docker Image:

ls -al /var/lib/ghost/.ghost-cli

The following result of the above command let's us know node is the user in the group node:

rw-r--r- 1 node node 83 Jan 5 09:40 /var/lib/ghost/.ghost-cli

We then change the user node to a superuser with the following command:

sudo usermod -aG sudo node

And then update the user permissions:

sudo chown node:node /var/lib/ghost

This command changes the file permissions:

sudo find ./ -type d -exec chmod 00775 {} \;

You also need to update the node user's password given you will be prompted for it:

sudo passwd node

After that, change to the node user:

su - node

Change into the ghost install directory:

cd /var/lib/ghost

And finally run the following command to update Ghost:

ghost update

This is where you will be prompted for the node user's password:

? Sudo Password

If all goes well you should get something similar to the following output, but in this case Ghost was already up to date:
sudo systemctl is-active ghost_undefined
? Checking system Node.js version - found v14.18.2
? Ensuring user is not logged in as ghost user
? Checking if logged in user is directory owner
? Checking current folder permissions
? Checking folder permissions
? Checking file permissions
? Checking memory availability
? Checking free space
? Checking for available migrations
? Checking for latest Ghost version
All up to date!


Смотрите видео Updating a Ghost Docker Container in Reclaim Cloud онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Reclaim Hosting 05 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 13 раз и оно понравилось людям.