docker images
docker run --rm quay.io/mongodb/charts:19.12.1 charts-cli test-connection 'mongodb://10.149.101.22:27017'
echo "mongodb://10.149.101.22:27017" | docker secret create charts-mongodb-uri -
docker stack deploy -c charts-docker-swarm-19.12.1.yml mongodb-charts
find / -name charts-docker-swarm-19.12.1.yml
cd /app/services/mongodb-charts/
ll
vim charts-docker-swarm-19.12.2.yml
docker stack deploy -c charts-docker-swarm-19.12.2.yml mongodb-charts
docker service ls
docker ps
docker service ls
vim charts-docker-swarm-19.12.2.yml
docker stop 5feb93b1e705
docker ps
docker service ls
docker remove 5feb93b1e705
vim charts-docker-swarm-19.12.2.yml
docker stack deploy -c charts-docker-swarm-19.12.2.yml mongodb-charts
docker service ls
docker exec -it \ $(docker container ls --filter name=_charts -q) \ charts-cli add-user --first-name "亚斌" --last-name "吴" \ --email "wuyabin@sfmail.sf-express.com" --password "1je91llj8imexx82nfaoi8vvr" \ --role "UserAdmin"
docker ps
docker exec -it mongodb-charts_charts.1.qu6u5t4rxha8yh2kxojrk9udo charts-cli add-user --first-name "亚斌" --last-name "吴" \ --email "wuyabin@sfmail.sf-express.com" --password "1je91llj8imexx82nfaoi8vvr" \ --role "UserAdmin"
mongodb-charts修复-启动
最新推荐文章于 2024-07-28 16:29:59 发布