一些常用docker容器

Table of Contents

1 phpMyAdmin1

docker run --name pma -d -e PMA_HOST=docker.for.mac.localhost -p 8888:80 phpmyadmin/phpmyadmin

2 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

3 Jekyll3

docker run --mount type=bind,source=$(pwd),target=/srv/jekyll \
-p 4000:4000 --name blog -it jekyll/jekyll \
jekyll serve

4 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

Footnotes: