Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```