Skip to content

Latest commit

 

History

History

tcp.echo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

tcp.echo

Listens on tcp port 12345 and will echo back whatever is sent to the server.

Requirements

  • nc
  • docker compose

Setup

To start the Docker Compose stack defined in the compose.yaml file, use:

docker compose up -d

Verify behavior

nc localhost 12345

Type a Hello, world message and press enter.

output:

Hello, world
Hello, world

Teardown

To remove any resources created by the Docker Compose stack, use:

docker compose down