diff --git a/Makefile b/Makefile
index 9fce3b9e7c0187746bfd51ad3f9c9650e9cbb331..c663bdf8a5848a672782e165355da1efcae8ecc8 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ subnotebooks: $(SUBNOTEBOOKS)
 
 %.pdf: %.html $(DEP_PRESENTATION)
 	# This needs to have artificially large paper size in order to fix bug https://github.com/astefanutti/decktape/issues/151#issuecomment-456166075
-	docker run --rm -t -v $(PWD):/slides astefanutti/decktape --size "2560x1440" reveal $< $@
+	docker run --rm -t --user $(id -u $USER):$(id -g $USER) -v $(PWD):/slides astefanutti/decktape --size "2560x1440" reveal $< $@
 
 Introduction-to-Pandas--slides.ipynb: $(MASTER_NOTEBOOK)
 	notebook-splitter --keep task --keep solution --keep onlypresentation --remove onlytask --remove onlysolution --remove nopresentation -o $@ $<