Jinja/mkdocs issue breaks docker101tutorial

docker101tutorial is currently broken due to this jinja/mkdocs issue:

mkdocs issue #2794

Output from build:

$ docker build -t docker101tutorial . 

...
#23 0.597   File "/usr/local/lib/python3.10/site-packages/mkdocs/utils/filters.py", line 13, in <module>
#23 0.597     @jinja2.contextfilter
#23 0.597 AttributeError: module 'jinja2' has no attribute 'contextfilter'

Solution:

As subjected in thread above a temperary fix is to use Jinja2 version to 3.0.3.

# requirements.txt
jinja2==3.0.3
9 Likes

Thanks! It works for me.