jonschipp / ISLET

Isolated, Scalable, & Lightweight Environment for Training
Other
111 stars 18 forks source link

Unset variables in docker module for causing failure #77

Closed jonschipp closed 8 years ago

jonschipp commented 8 years ago

By not setting the variables below I found a bug that causes docker run to fail.

CPUSHARES=""                                   # Proportion of cpu share allocation per container
MEMORY=""                                      # Amount of memory allocated to each container
SWAP=""                                        # Amount of swap memory allocated to each container
shell: CLIENT=98.226.218.52 SRCPORT=59682 SERVER=162.243.237.193 DSTPORT=22 SSH_TTY=/dev/pts/2 TERM=xterm PPID=29251 TMOUT=60
opt: docker run --name=suricata.stuff --tty --hostname suricata --cpu-shares  --cpuset-cpus 0 --memory  --memory-swap -1
<clipped for brevity>                                                                                        ^                                       ^
Enjoy yourself!
Training materials are in /exercises
invalid value "--cpuset-cpus" for flag --cpu-shares: strconv.ParseInt: parsing "--cpuset-cpus": invalid syntax
See 'docker run --help'.
jonschipp commented 8 years ago

Complete https://github.com/jonschipp/ISLET/commit/42e642cf2354a0460bed0875d235d037bf7d22db