Skip to content
Permalink
Browse files

A bit of cleanup

  • Loading branch information...
Cat5TV committed Aug 20, 2019
1 parent 6e8f487 commit df82d5bab8cf3597ce0ce7421a37ad1448b274d4
Showing with 3 additions and 3 deletions.
  1. +2 −2 notes/docker/docker-container.md
  2. +1 −1 notes/docker/image/Dockerfile
@@ -1,8 +1,8 @@
Key point is that NEMS' Docker Container requires systemd, but as that would pose a security risk, I have opted to instead go with docker-systemctl-replacement. I've setup an environment that should behave much like a virtual appliance.

- Run in image folder: `docker build -t nemslinux .`
- Get the Docker ID: Note the output of "Successfully built ####"
- Run the container as daemon: `docker run --mount type=tmpfs,destination=/tmp,tmpfs-mode=1770 --name nemslinux -d ##DOCKERID##`
- Run the container as daemon: `docker run --mount type=tmpfs,destination=/tmp,tmpfs-mode=1770 --restart=unless-stopped --name nems -d nemslinux`

# - Connect to the container: `docker run -it ##DOCKERID## bash`
- Connect to the container: `docker exec -it nemslinux bash`
- Compile NEMS Linux as normal, platform 21.
@@ -5,7 +5,7 @@ ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive

# Setup our data persistence
VOLUME ["/usr/local/", "/var/log/", "/var/www/", "/usr/lib/nagios/", "/etc/nems/"]
VOLUME ["/var/log/", "/tmp/"]

MAINTAINER Robbie Ferguson <nems@category5.tv>

0 comments on commit df82d5b

Please sign in to comment.
You can’t perform that action at this time.