title: run docker after setup network
body: <p>I'm new to docker. Now I encounter some problems, can anyone help me?</p>
  
  <p>I want to run a container with macvlan. 
  In my case, I will run a container with <code>--net=none</code> first. 
  Then configure the network using ip command (or using netns in python).
  the order is :</p>
  
  <ol>
  <li>run a container</li>
  <li>run app inside container</li>
  <li>setup network</li>
  </ol>
  
  <p>my question is that how to setup the network first. 
  Then run the app. 
  the order is : </p>
  
  <ol>
  <li>run a container</li>
  <li>setup network</li>
  <li>run app inside docker</li>
  </ol>
  
  <p>Maybe I can write network configuration script on a file and run it before the other stuff on Dockerfile. But in this way,  the network and container are highly coupling,  and I need edit it for every container everytime manually.</p>
  
  <p>So is there a better way to handle this situation?
  thx in advance.</p>