docker-常见镜像的启动命令
nginxdocker run -p 0.0.0.0:80:80 -v C:\docker\nginx\default.conf:/etc/nginx/conf.d/default.conf:ro --name nginx --restart always nginx:latestmysqldocker run -p 0.0.0.0:3306:3306 -v C:\docker\mysq...
·
nginx
docker run -p 0.0.0.0:80:80 -v C:\docker\nginx\default.conf:/etc/nginx/conf.d/default.conf:ro --name nginx --restart always nginx:latest
mysql
docker run -p 0.0.0.0:3306:3306 -v C:\docker\mysql:/var/lib/mysql --name mysql --restart always mysql:latest
redis
docker run -p 0.0.0.0:6379:6379 -v C:\docker\redis\redis.conf:/etc/redis/redis.conf:ro -v C:\docker\redis:/data --name redis --restart always redis:latest redis-server /etc/redis/redis.conf
rabbitmq
docker run -p 0.0.0.0:15672:15672 --name rabbitmq --restart always rabbitmq:latest
创建用户
rabbitmqctl add_user username password
设置角色
rabbitmqctl set_user_tags username administrator
设置角色权限
rabbitmqctl set_permissions -p / username ".*" ".*" ".*"
设置主题权限
rabbitmqctl set_topic_permissions -p / username ".*" ".*" ".*"
nexus
docker run -p 0.0.0.0:8081:8081 -v C:\docker\nexus:/nexus-data --name nexus --restart always sonatype/nexus3:latest
更多推荐
已为社区贡献3条内容
所有评论(0)