This repository was archived by the owner on Jul 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
Unable to run nomad agent -dev inside docker #21
Copy link
Copy link
Open
Description
Hi, I'm having issues running Nomad using this docker container.
I'm trying to run with these options:
$ docker run -it --net host -v /var/run/docker.sock:/var/run/docker.sock --privileged djenriquez/nomad agent -devAlthough the initialization works, when I try to install the example job it fails with these messages:
$ nomad job run example.nomad
==> Monitoring evaluation "5fe255d4"
Evaluation triggered by job "example"
Allocation "1672dcc0" created: node "77289a29", group "cache"
Evaluation within deployment: "088fcb7b"
Allocation "1672dcc0" status changed: "pending" -> "failed"
Evaluation status changed: "pending" -> "complete"
==> Evaluation "5fe255d4" finished with status "complete"$ nomad status
ID Type Priority Status Submit Date
example service 50 dead 2018-11-20T23:16:50+11:00$ nomad status example
ID = example
Name = example
Submit Date = 2018-11-20T23:16:50+11:00
Type = service
Priority = 50
Datacenters = dc1
Status = dead
Periodic = false
Parameterized = false
Summary
Task Group Queued Starting Running Failed Complete Lost
cache 0 0 0 1 0 0
Latest Deployment
ID = 088fcb7b
Status = failed
Description = Failed due to unhealthy allocations
Deployed
Task Group Desired Placed Healthy Unhealthy
cache 1 1 0 1
Allocations
ID Node ID Task Group Version Desired Status Created Modified
1672dcc0 77289a29 cache 0 run failed 8s ago 7s ago$ nomad status 1672dcc0
ID = 1672dcc0
Eval ID = 5fe255d4
Name = example.cache[0]
Node ID = 77289a29
Job ID = example
Job Version = 0
Client Status = failed
Client Description = <none>
Desired Status = run
Desired Description = <none>
Created = 12s ago
Modified = 11s ago
Deployment ID = 088fcb7b
Deployment Health = unhealthy
Task "redis" is "dead"
Task Resources
CPU Memory Disk IOPS Addresses
500 MHz 256 MiB 300 MiB 0 db: 127.0.0.1:30012
Task Events:
Started At = N/A
Finished At = N/A
Total Restarts = 0
Last Restart = N/A
Recent Events:
Time Type Description
2018-11-20T23:16:50+11:00 Alloc Unhealthy Unhealthy because of failed task
2018-11-20T23:16:50+11:00 Not Restarting Error was unrecoverable
2018-11-20T23:16:50+11:00 Driver Failure failed to start task "redis" for alloc "1672dcc0-3006-c6df-a5f7-45d37589f069": Failed to create container: API error (400): {"message":"stat /tmp/plugin615200430: no such file or directory"}
2018-11-20T23:16:50+11:00 Task Setup Building Task Directory
2018-11-20T23:16:50+11:00 Received Task received by clientHave you seen this Driver Failure message before?
Metadata
Metadata
Assignees
Labels
No labels