January 2018
Intermediate to advanced
414 pages
10h 29m
English
Now that we have a service running in our swarm, we may need to retrieve its logs. We can do so with the following command:
docker service logs -f helloworld
This will output a full set of lines, as in the following example, until we press Ctrl + C:
helloworld.1.ibpnops8gddp@moby | 64 bytes from 216.58.206.78: seq=421 ttl=37 time=10.157 mshelloworld.1.ibpnops8gddp@moby | 64 bytes from 216.58.206.78: seq=422 ttl=37 time=10.221 mshelloworld.1.ibpnops8gddp@moby | 64 bytes from 216.58.206.78: seq=423 ttl=37 time=10.158 mshelloworld.1.ibpnops8gddp@moby | 64 bytes from 216.58.206.78: seq=424 ttl=37 time=10.559 mshelloworld.1.ibpnops8gddp@moby | 64 bytes from 216.58.206.78: seq=425 ttl=37 time=10.208 mshelloworld.1.ibpnops8gddp@moby ...
Read now
Unlock full access