Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielrf/docker-mongodb-rpi
MongoDB Docker image for RaspberryPi
https://github.com/gabrielrf/docker-mongodb-rpi
docker mongodb raspberry-pi
Last synced: 4 days ago
JSON representation
MongoDB Docker image for RaspberryPi
- Host: GitHub
- URL: https://github.com/gabrielrf/docker-mongodb-rpi
- Owner: GabrielRF
- License: gpl-3.0
- Created: 2016-12-06T11:12:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-30T21:00:59.000Z (over 5 years ago)
- Last Synced: 2024-10-17T02:22:22.862Z (30 days ago)
- Topics: docker, mongodb, raspberry-pi
- Homepage:
- Size: 16.6 KB
- Stars: 13
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MongoDB docker container for RaspberryPi
##### Dockerfile originally written by: https://github.com/matteoredaelli/docker-mongodb-rpi
---
##### This image was tested on a RaspberryPi3 as MongoDB official image didn't work.
---
## Docker build
##### The image should be ready at hub.docker. Build it only if you aren't getting it from hub.docker.
```
git clone https://github.com/GabrielRF/Docker-MongoDB-RPi/
cd Docker-MongoDB-RPi/
docker build -t gabrielrf/docker-mongodb-rpi .
```## Docker installation
```
curl -ssl https://get.docker.com | sh
```## Docker run
```
docker run -d -v /usr/local/bin/mongo:/data/db -p 27017:27017 --name mongodb gabrielrf/docker-mongodb-rpi --log-opt max-size=10m --log-opt max-file=3 --restart:always
```
`-d`: Run as a daemon`-v`: Mount a volume - host:container
`-p`: Ports - host:container
## Known issues
If you are getting any error after stoping the container, check if `mongod.lock` existis. If it does, remove it.
```
rm /usr/local/bin/mongo/mongod.lock
```