docker命令笔记


从现在开始,我承认CSDN就是放笔记的地方,方便查找呵呵哈哈哈哈哈哈……
最近学习docker,学完了我会来总结和整理的

docker run --detach --name wordpress --env "VIRTUAL_HOST=blog.erving.top" --env "LETSENCRYPT_HOST=blog.erving.top" --env "[email protected]" --expose 80 --expose 443 -e WORDPRESS_DB_PASSWORD=yeyuwei --link wordpressdb:mysql -v "$PWD/html":/var/www/html wordpress

docker run -e MYSQL_ROOT_PASSWORD=yeyuwei -e MYSQL_DATABASE=wordpress --name wordpressdb -v "$PWD/database":/var/lib/mysql -d mariadb:latest



docker run -d --name moodle -e DB_ENV_MYSQL_DATABASE=moodle -e DB_ENV_MYSQL_USER=moodle -e DB_ENV_MYSQL_PASSWORD=moodle -e VIRTUAL_HOST=moodle.erving.top -e LETSENCRYPT_HOST=moodle.erving.top -e [email protected] -v ~/moodle/data:/var/moodledata --link moodledb:mysql jhardison/moodle

docker run -d --name moodle -e DB_PORT_3306_TCP_ADDR=moodledb -e DB_ENV_MYSQL_DATABASE=moodle -e DB_ENV_MYSQL_USER=moodle -e DB_ENV_MYSQL_PASSWORD=moodle -e VIRTUAL_HOST=moodle.erving.top -e LETSENCRYPT_HOST=moodle.erving.top -e [email protected] -v ~/moodle/data:/var/moodledata --link moodledb:mysql jhardison/moodle

docker run -d --name moodledb -e MYSQL_DATABASE=moodle -e MYSQL_ROOT_PASSWORD=moodle -e MYSQL_USER=moodle -e MYSQL_PASSWORD=moodle -v ~/moodle/db:/var/lib/mysql mysql:5


docker run -e MYSQL_ROOT_PASSWORD=yeyuwei -e MYSQL_DATABASE=moodle --name moodledb -v "$PWD/database":/var/lib/mysql -d mariadb:latest
docker run --detach --name moodle --env "VIRTUAL_HOST=moodle.erving.top" --env "LETSENCRYPT_HOST=moodle.erving.top" --env "[email protected]" --expose 80 --expose 443 -e MOODLE_DB_PASSWORD=yeyuwei --link moodledb:mysql -v "$PWD/html":/var/moodledata jhardison/moodle



docker run -d --name moodledb -e ALLOW_EMPTY_PASSWORD=yes -e MARIADB_USER=moodle -e MARIADB_DATABASE=moodle --net moodle --volume moodledb:/bitnami bitnami/mariadb:latest

docker run -d --name moodle --expose 80 --expose 443 --env "VIRTUAL_HOST=moodle.erving.top" --env "LETSENCRYPT_HOST=moodle.erving.top" --env "[email protected]" -e ALLOW_EMPTY_PASSWORD=yes -e MOODLE_DATABASE_USER=moodle -e MOODLE_DATABASE_NAME=moodle --net moodle --volume moodle:/bitnami bitnami/moodle:latest

docker run -d --name moodle --env "VIRTUAL_HOST=moodle.erving.top" --env "LETSENCRYPT_HOST=moodle.erving.top" --env "[email protected]" --expose 80 --expose 443 -e WORDPRESS_DB_PASSWORD=moodle -v "$PWD/html":/var/moodledata --link moodledb:mysql  jhardison/moodle
docker run -d --name moodledb -e MYSQL_DATABASE=moodle -e MYSQL_ROOT_PASSWORD=moodle -e MYSQL_USER=moodle -e MYSQL_PASSWORD=moodle -v "$PWD/database":/var/lib/mysql mysql:5

你可能感兴趣的:(Notes,docker)