一些常用docker容器
phpMyAdmin1
docker run --name pma -d -e PMA_HOST=docker.for.mac.localhost -p 8888:80 phpmyadmin/phpmyadmin
mongo2
docker run --name mongo -p 27017:27017 -v ~/docker-data/mongo:/data/db -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin -d mongo
Jekyll3
docker run --mount type=bind,source=$(pwd),target=/srv/jekyll \ -p 4000:4000 --name blog -it jekyll/jekyll \ jekyll serve
Portainer4
docker run -d -p 9000:9000 \ --restart always \ -v /var/run/docker.sock:/var/run/docker.sock \ -v ~/workspace/portainer/data:/data \ -v ~/workspace/portainer/certs:/certs \ --name my-portainer \ portainer/portainer \ --ssl --sslcert /certs/localhost.pem --sslkey /certs/localhost-key.pem
Comments:
Email questions, comments, and corrections to hi@smartisan.dev.
Submissions may appear publicly on this website, unless requested otherwise in your email.