Skip to content
Snippets Groups Projects
  1. Apr 22, 2013
  2. Apr 16, 2013
  3. Apr 10, 2013
    • Louis Opter's avatar
      Use ip to setup the gateway in sysinit.go · 5e1a975b
      Louis Opter authored
      ip from iproute2 replaces the legacy route tool which is often not
      installed by default on recent Linux distributions.
      
      The same patch has been done in network.go and is re-used here.
      5e1a975b
  4. Mar 23, 2013
  5. Mar 22, 2013
  6. Mar 07, 2013
  7. Feb 21, 2013
  8. Feb 13, 2013
    • Andrea Luzzardi's avatar
    • Andrea Luzzardi's avatar
      Implemented a self-injecting process wrapper that runs inside the container · 58a22942
      Andrea Luzzardi authored
      - Before starting the container, docker injects itself inside the container by mount binding the dockerd binary into /sbin/init
      - Instead of running the user process directly inside the container, we run /sbin/init targetprocess [args...]
      - When docker is run as /sbin/init (e.g. argv[0] == "/sbin/init"), then its own sys init code kicks in
      - The sys init code will be responsible for setting up the process environment prior to its execution (setuid, networking, ...).
      - Finally, docker's sys init will exec() the container's process, thus replacing itself with the target binary (which will be running as pid 1)
      58a22942
Loading