Skip to content
Browse files

Set hostname

  • Loading branch information...
Your Name
Your Name committed Aug 20, 2019
1 parent e0c5c7d commit d0f59b80ae750dfc1ecf0a094091669d0c1d78d5
Showing with 2 additions and 2 deletions.
  1. +1 −1 notes/docker/
  2. +1 −1 notes/docker/image/compile
@@ -1,7 +1,7 @@
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: `./compile`
- Deploy the container as daemon: `docker run --mount type=tmpfs,destination=/tmp,tmpfs-mode=1770 --restart=unless-stopped --stop-timeout 120 --name nems -d nemslinux`
- Deploy the container as daemon: `docker run --hostname nems --mount type=tmpfs,destination=/tmp,tmpfs-mode=1770 --restart=unless-stopped --stop-timeout 120 --name nemslinux -d nems15`
- Connect to the container: `docker exec -it nemslinux bash`
- Compile NEMS Linux as normal, platform 21.
- Run NEMS Linux: `docker exec -d nemslinux`
@@ -10,7 +10,7 @@ read -r -p "What build number is this? " buildnum
docker build --label build="$nemsver" -t nemsprep stage1

# Deploy and compile NEMS Linux
docker build --label build="$nemsver" -t nemslinux stage2
docker build --label build="$nemsver" -t nems15 stage2

# Prepare Image

0 comments on commit d0f59b8

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