Docker

From Hawk Wiki
Revision as of 01:22, 24 December 2018 by Hall (Talk | contribs) (Docker socks5 proxy and Auto Restart)

Jump to: navigation, search

Docker socks5 proxy and Auto Restart

run on port 21080

docker pull wernight/dante
docker run -dit --restart unless-stopped -p 21080:1080 wernight/dante

Docker mongodb

docker run -d -p 29017:27017 -v /data/db:/data/db -v /etc/mongod.conf:/etc/mongod.conf mongo:3.6.9-stretch --directoryperdb

Docker remove all stopped containers

docker container rm $(docker container ls -q)