mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 10:10:46 +08:00
7 lines
296 B
Bash
Executable file
7 lines
296 B
Bash
Executable file
#!/bin/bash
|
|
|
|
sudo docker kill mongodb
|
|
sudo docker rm mongodb
|
|
sudo docker volume rm mongovol
|
|
|
|
docker volume create mongovol && docker run -d --name mongodb -v mongovol:/data/db --network host -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=mongopass mongo --bind_ip 0.0.0.0
|