How to Use Build the Image docker build . -t unlock-pdf Run It docker run -v <your directory on the host>:/unlock-pdf unlock-pdf <password> Done :)