Lightweight container that returns an exit code corresponding to whether a port is open or closed.
307
An exit code of 0 means the port is open and reachable while 1 means it's not. Useful for conducting rudimentary health checks on services like MySQL databases (port 3306) and web servers (port 80):
$ docker run --rm pheuter/netcat 10.0.0.1:3306
Note: command will timeout after 1 second.
Content type
Image
Digest
Size
2.2 MB
Last updated
over 10 years ago
docker pull pheuter/netcat