zaunerc / reapply-pipework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reapply-pipework

Problem

When using pipework to map physical network devices into the network namespace of docker containers you will encounter the following problem. Each time the docker container is restarted the mapped network device will not be available anymore inside the container (it will be part of the default network namespace again).

Solution

The reapply-pipework script is supposed to run periodically on a docker host. It reapplies network settings to docker containers using pipework.

Installation

  1. Install the pipework script to /usr/local/sbin/:
  2. cd /usr/local/sbin/
  3. sudo wget https://raw.githubusercontent.com/jpetazzo/pipework/master/pipework
  4. sudo chmod a+x pipework
  5. Install the reapply-pipework script:
  6. Clone this git repository (e.g. $ git clone https://github.com/zaunerc/reapply-pipework.git)
  7. Install the reapply-pipework script by using the provided install script. This installs the reapply-pipework script to /usr/local/sbin/.
  8. Configure the reapply-pipework script using the /usr/local/etc/reapply-pipework.conf file.

About


Languages

Language:Shell 100.0%