If there’s a need to rebuild Jekyll running in a container, you must do the following.
- stop the current container
cd ~/docker/ulyme
$ docker-compose down
- once stopped, go ahead and rebuild
docker-compose up --build
- once site is rebuilt, stop and delete it the updated container
$ docker stop ulyme_jekyll_1
$ docker rm ulyme_jekyll_1
- finally, start a new docker container that’s running it the background
docker-compose up -d
This is a requirement if you made major changes to your site such as adding or removing plugins, etc.