Skip to content

Instantly share code, notes, and snippets.

@holin
Last active April 28, 2017 08:27
Show Gist options
  • Save holin/b9c3b35a078ce64b74ae672b2c06141b to your computer and use it in GitHub Desktop.
Save holin/b9c3b35a078ce64b74ae672b2c06141b to your computer and use it in GitHub Desktop.
docker

remove not use container docker ps --filter "status=exited" | grep 'weeks ago' | awk '{print $1}' | xargs --no-run-if-empty docker rm

restart policy sudo docker run -d --restart on-failure -p 8910:8910 --add-host testkj.aixuexi.com:101.200.88.81 phantomjs-ubuntu /bin/phantomjs --webdriver=8910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment