I’d like to access to docker command from host (linux VM) inside a container (ubuntu 16.04) which embeds a java program. In this last, it triggers a process which calls ‘docker…’ to start another container. The outcome is actually:
java.io.IOException: Cannot run program “docker” (in directory “.”): error=2, No such file or directory
because it cannot find docker.
I tried with --add-host=… but nothing change.
If anyone has an idea…?