Skip to content

Add docker to community version of eve. This is based upon 2.0.3-86. Install docker-ce first before proceeding. Also enabe the ability for docker command on eve community by

tamihiro/Eve-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Eve-docker

Add docker to community version of eve community version 2.0.3-86. uninstall docker-enginer, docker.io. Install Docker-CE as per https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository.

Create /etc/systemd/system/docker.service.d/override.conf with the contents below: [Service] ExecStart= ExecStart=/usr/bin/dockerd -H unix://var/run/docker.sock -H tcp://127.0.0.1:4243

This should enable docker within eve and enable console access to load images to use.

Applications in containers can be downloaded from the Hub and then be used in eve itself.

These are the changed files to make docker function. IP Addresses of the interfaces are set by using nsenter on the container. If you do not assign an IP address then when you start a container the container will never enter run mode. The icon on the container will stay as a clock face. The only way to recover from this is to wipe the node, configure the IP address and then start.

The container IP address must be part of the startup configuration. Check the eve-ng pro cookbook on the correct format. If you have not got a play triangle against the image in the eve lab it means that you have not set the IP address correctly as it uses nsenter to set the ip address and the success of this removes the lock file enabling the play symbol. If you start a device without the correct settings you need to wipe the device before trying again.

The docker options box on the template should typically be used to set environmental variables rather than the ip address. I found a number of containerise network functions that required environmental variables to be presented. so use '-e ENVIRONMENTAL_VARIABLE' and it gets passed into the create command.

Copy files to the appropriate directory in /opt/unetlab should be releatively self explanatory.

About

Add docker to community version of eve. This is based upon 2.0.3-86. Install docker-ce first before proceeding. Also enabe the ability for docker command on eve community by

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 63.2%
  • JavaScript 35.8%
  • Other 1.0%