Public | Automated Build

Last pushed: 2 years ago
Short Description
PhantomJS 2.1.1
Full Description


Docker container running PhantomJS with special setup for creating screenshots from websites.
It can also be used via WebDriver for web system testing.

Start PhantomJS in REPL

  • docker run --rm joergpatz/phantomjs

Usage as executable

  • docker run --rm joergpatz/phantomjs --help
  • docker run --rm -v `pwd`:/tmp joergpatz/phantomjs webshoot.js webshot.png

Usage inside the container

  • docker run --rm -v `pwd`:/tmp -it --entrypoint /bin/bash joergpatz/phantomjs

Alias docker run command

  • alias phantomjs='docker run --rm -v `pwd`:/tmp joergpatz/phantomjs'
  • phantomjs webshoot.js webshot.png

Remote WebDriver

  • docker run -d -p 8910:8910 joergpatz/phantomjs --webdriver=8910

Infinality for Debian

Better font rendering in Linux with Infinality

Docker Pull Command
Source Repository