Skip to content

Commit

Permalink
A bit of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat5TV committed Aug 20, 2019
1 parent 6e8f487 commit df82d5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions notes/docker/docker-container.md
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion notes/docker/image/Dockerfile
Expand Up @@ -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>

Expand Down

0 comments on commit df82d5b

Please sign in to comment.