Skip to content

Aravindumasankar/vision-microservices

Repository files navigation

face-svc

Basic Python Flask app in Docker which prints the hostname and IP of the container

Build application

Build the Docker image manually by cloning the Git repo.

$ git clone https://github.com/Aravindumasankar/face-svc.git
$ docker build -t vision-services/face-svc .

Download precreated image

You can also just download the existing image from DockerHub.

docker pull /vision-services/face-svc

Run the container

Create a container from the image.

$ docker run --name face-svc -d -p 8080:8080 vision-services/face-svc

Now visit http://localhost:8080

 The hostname of the container is 6095273a4e9b and its IP is 172.17.0.2. 

Verify the running container

Verify by checking the container ip and hostname (ID):

$ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' my-container
172.17.0.2
$ docker inspect -f '{{ .Config.Hostname }}' my-container
6095273a4e9b

About

Face Recognition MicroService

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published