Can docker use the existing host system to run a command in isolation like lxc-execute

A lot of the docker examples I have seen involve images of an os, albeit proably a stripped down version. If you have an existing RHEL system with lxc you can just execute a containerized bash. Can docker do something similar or do you always need base images that are unrelated to the host OS.

  • Docker: Unable to commit a built docker image
  • I can't access mounted volume of docker-postgres from host
  • Open a WebSocket connexion from a docker container to another (able to ping container in cli but not via ws)
  • Should Docker Swarm Master be separate physical node?
  • How can I increase my Docker Sonarqube disk space to avoid this warning?
  • Assign labels to Docker daemon
  • Extend docker container
  • unable to connect to dockerized mysql container locally
  • vagrant variables in Dockerfile
  • Docker dnu restore fails
  • Docker on Windows getting “Could not locate Gemfile”
  • Docker Container Best Practices
  • One Solution collect form web for “Can docker use the existing host system to run a command in isolation like lxc-execute”

    lxc-execute does not chroot nor provides a mount namespace, this is why you can start any command with it.

    This is currently not possible with Docker, but it should be soon. With the -o you will be able to select which namespace you want to use.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.