Skip to content

oagudo/docker-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-microservice

build docker image

docker build -t service .

...

run server echo service

docker run -d -p 8000:8000 service

5c1a0120a2480814f440f26a33458d35e8ef6e663736e57ae4d46cf042843b7a

list current docker containers

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

5c1a0120a248 service "python server.py" 2 minutes ago Up 2 minutes 0.0.0.0:8000->8000/tcp naughty_murdock

in another terminal run the client

python client.py

Server said: hello, world!

connection lost

Connection lost - goodbye!

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages