containers - Scaling with docker-composer and appending a number to the hostname? -
i've got docker-compose.yml
:
master: build: . slave: image: master hostname: slave command: run_slave
how can make docker-compose scale slave=5
generate machines unique hostnames?
...e.g. this:
slave1 slave2 slave3 slave4 slave5
there no way set hostname value.
if need unique identifier, use unique container id, can running $(hostname)
.
Comments
Post a Comment