A CLI chat app built with Python, using a custom Docker network for container name resolution.
109
A simple command-line chat application written in Python and running in Docker containers. It consists of a server and a client, each as a separate image, communicating over a custom network that enables container name resolution. The server listens on port 12345, handling connections and exchanging messages with the client for real-time interaction. Future updates may include additional features to enhance functionality.
Create chat-network:
$ docker network create -d bridge chat-network
Run chat_server:
$ docker run -it --rm --name chat_server --network chat-network -p 12345:12345 ivanqc92/cli-py-chat:server
Open a new terminal window to run chat_client:
$ docker run -it --rm --name chat_client --network chat-network ivanqc92/cli-py-chat:client
To shutdown the server type exit:
Client: exit
Content type
Image
Digest
sha256:b518b88f9…
Size
44.5 MB
Last updated
over 1 year ago
docker pull ivanqc92/cli-py-chat:client