Launch MongoDB by executing docker run -ti --rm -p 27017:27017 byuhbll/mongo and connect using localhost or by using the connection string mongodb://localhost/.
The image has a start command for quickly launching services from within the container. The usage of the script is start [SERVICE...] where SERVICE is optional because the image has a default set of services that will be started. You can view the default services by executing echo $DEFAULT_SERVICES from within the container. There are also two other sister commands, stop and restart, that work the same way as start except that they stop or restart the services respectively.
Content type
Image
Digest
Size
200.6 MB
Last updated
over 7 years ago
docker pull byuhbll/mongo