HashiCorp Nomad doesn't support to run Linux docker containers in Docker for Windows.
This project achieves that by running nomad agent as a privileged docker container.
For more details see Support Linux images in Docker for Windows · Issue #2633 · hashicorp/nomad
- Create a
.env
file by copying.env.example
- Change
http_proxy
andhttps_proxy
according to your environment
docker-compose up -d nomad-agent
- Consul also run in background
docker-compose logs -f nomad-agent
❯ docker-compose exec nomad-agent nomad server members
Name Address Port Status Leader Protocol Build Datacenter Region
c4d8159276cb.global 172.2.0.2 4648 alive true 2 0.12.5 dc1 global
❯ docker-compose exec nomad-agent consul members
Node Address Status Type Build Protocol DC Segment
d7fc0f4e7ad5 127.0.0.1:8301 alive server 1.8.4 2 dc1 <all>
You can get nomad
executable file from here.
❯ nomad server members
Name Address Port Status Leader Protocol Build Datacenter Region
c4d8159276cb.global 172.2.0.2 4648 alive true 2 0.12.5 dc1 global
You can get consul
executable file from here.
❯ consul members
Node Address Status Type Build Protocol DC Segment
d7fc0f4e7ad5 127.0.0.1:8301 alive server 1.8.4 2 dc1 <all>
Open following pages after starting the nomad agent.
- Nomad
- Consul