Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

docker run -it --rm -e EDGEVIEW_CLIENT=1 -h=$(hostname) --network=host -v /tmp/download:/download lfedge/eve-edgeview -token <jwt-token> "$@"

The volume '-v' setting assumes the local laptop has a directory '/tmp/downlad' to be used for files uploading from device to the laptop. The 'jwt-token' is a string generated by the controller when the EdgeView is started.

Docker Port Mapping

On a Mac laptop, it does not support docker run in network in host mode, the port mapping for TCP can be explicitly defined in the script:

...