exec: "docker": executable file not found in $PATH

2,271 views
Skip to first unread message

Luís Alves

unread,
Oct 7, 2015, 6:52:11 AM10/7/15
to marathon-framework
Hi,
I'm trying to launch a docker image using marathon on my mesos cluster, but I'm getting the following error: exec: "docker": executable file not found in $PATH

I'm working on Ubuntu 14.04 LTS, with docker 1.0.1 and marathon 0.11.0.

Th error is in the following log file:
mesos/work/slaves/20151004-113517-50393098-5050-14407-S0/frameworks/20151004-134210-33615882-5050-861-0000/executors/jackex.7bd92a6f-6cdd-11e5-8018-42010af00003/runs/57e0c759-e176-470c-a983-1d57ce7f3fd0$

I1007 10:23:42.667419 23519 exec.cpp:133] Version: 0.24.1
I1007 10:23:42.670531 23527 exec.cpp:207] Executor registered on slave 20151004-113517-50393098-5050-14407-S0
panic: exec: "docker": executable file not found in $PATH

goroutine 1 [running]:
runtime.panic(0x8f30e0, 0xc2100936c0)
        /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/dotcloud/docker/utils.SelfPath(0xc200000000, 0x100000000)
        /build/buildd/docker.io-1.0.1~dfsg1/obj-x86_64-linux-gnu/src/github.com/dotcloud/docker/utils/utils.go:103 +0x153
main.main()
        /build/buildd/docker.io-1.0.1~dfsg1/docker/docker.go:35 +0x29

goroutine 3 [syscall]:
os/signal.loop()
        /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
        /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [syscall]:
runtime.goexit()
        /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 6 [runnable]:
text/template/parse.lexText(0xc210061a00, 0xadd0b8)
        /usr/lib/go/src/pkg/text/template/parse/lex.go:228 +0x35e
text/template/parse.(*lexer).run(0xc210061a00)
        /usr/lib/go/src/pkg/text/template/parse/lex.go:198 +0x40
created by text/template/parse.lex
        /usr/lib/go/src/pkg/text/template/parse/lex.go:191 +0x117
W1007 10:23:42.670531 23519 logging.cpp:81] RAW: Received signal SIGTERM from process 8151 of user 0; exiting

And here's the json I'm using:
{
    "id": "jackex",
    "container": {
        "docker": {
            "image": "ubuntu:14.04"
        },
        "type": "DOCKER",
        "volumes": []
    },
    "cmd": "while sleep 10; do date -u +%T; done",
    "cpus": 0.2,
    "mem": 200,
    "instances": 1
}

Anyone knows what can I do to fix this?

Thanks

Gastón Kleiman

unread,
Oct 7, 2015, 7:19:51 AM10/7/15
to Luís Alves, marathon-framework
On Wed, Oct 7, 2015 at 12:52 PM, Luís Alves <luis....@passworks.io> wrote:
Hi,
I'm trying to launch a docker image using marathon on my mesos cluster, but I'm getting the following error: exec: "docker": executable file not found in $PATH

Try using the --docker flag to specify the docker path when starting the Mesos Slave:

--docker=VALUE The absolute path to the docker executable for docker containerizer. (default: docker)

Cheers,

-Gastón 

Reply all
Reply to author
Forward
0 new messages