如何连接到mongo容器并插入数据 docker pull mongo:4.4.3 // without authentication docker run -d --name mongo -p 2717:27017 -v ~ /path/to/data/mongo/:/data/db/ mongo:4.4.3 // to supply authentication docker exec -it mongo bash use db_name db.createUser({ user: ' sam ' , pwd: ' secretPassword ' , roles: [{rol