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.

  • how to make fail2ban read json docker logs
  • Loading PostgreSQL Database Backup Into Docker/Initial Docker Data
  • Gracefully stopping tomcat in docker
  • how to restrict number of service replicas in docker to 1
  • Docker disk usage
  • Failed to resolve 'kafka:9092': Name or service not known - docker / php-rdkafka
  • How to make Docker container accessible to other network machines through IP?
  • Docker images with visual(X) support? Or should I use VBox instead in this case?
  • How to setup GUI for private docker registry?
  • Celery tasks for different python app in different Docker containers
  • Connect two instances of docker-compose
  • docker login in docker machine
  • 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.