We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Persist

Let's make sure our volume is working by starting a new container. If it's working, our new container will still serve the post we created because it will load it from the volume.

Assignment

  1. docker ps
    
  2. docker stop CONTAINER_ID
    docker rm CONTAINER_ID
    
  3. docker run -d \
      -e NODE_ENV=development \
      -e url=http://localhost:3001 \
      -e database__connection__filename=/var/lib/ghost/content/data/ghost-dev.db \
      -p 3001:2368 \
      -v ghost-vol:/var/lib/ghost/content \
      ghost
    

Refresh your webpage and see if your site is still there. If it is, your volume is working as intended!

Run and submit the CLI tests.