Git Product home page Git Product logo

distributed_tensorflow_docker's Introduction

How to run distributed tensorflow with docker Port Communication

First make docker images from Dockerfile

  • Command
docker build -t test:latest .
  • Result
(base) chageumgang-ui-MacBookPro:test chageumgang$ docker build -t test:latest .
Sending build context to Docker daemon   7.68kB
Step 1/2 : FROM nvidia/cuda:10.0-base-ubuntu16.04
10.0-base-ubuntu16.04: Pulling from nvidia/cuda
976a760c94fc: Pull complete
...
4189f57a58ef: Pull complete 
Digest: sha256:459a4ec73aa1a18b38838a9207f8c438f264199f5f132c8968fe6fdaa578d4cb
Status: Downloaded newer image for nvidia/cuda:10.0-base-ubuntu16.04
 ---> 723856171922
Step 2/2 : FROM tensorflow/tensorflow:1.14.0-gpu-py3
1.14.0-gpu-py3: Pulling from tensorflow/tensorflow
6abc03819f3e: Pull complete 
05731e63f211: Pull complete
... 
f401bdaa92ad: Pull complete
6669e38ab1ba: Pull complete 
5b6ac7f35d3d: Pull complete 
Digest: sha256:e72e66b3dcb9c9e8f4e5703965ae1466b23fe8cad59e1c92c6e9fa58f8d81dc8
Status: Downloaded newer image for tensorflow/tensorflow:1.14.0-gpu-py3
 ---> a7a1861d2150
Successfully built a7a1861d2150
Successfully tagged test:latest

Run Container by previous image

  • Command
(base) chageumgang-ui-MacBookPro:test chageumgang$ docker run -it --rm -d --volume=$(pwd):/app/ test:latest /bin/bash
  • Figure out the container id
abbe01ccdc06df6f501a27235319c966188ddc42163eb485d0c589e73f9b7c30
  • exec to generated container
docker exec -it 7c964577cb3d python train.py --job_name=learner
docker exec -it 7c964577cb3d python train.py --job_name=actor

distributed_tensorflow_docker's People

Contributors

chagmgang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.