Step 1: Install docker on your linux system (My linux is fedora)
https://docs.docker.com/engine/installation/linux/fedora/
Other linux systems Please refer to the official guide https://docs.docker.com/engine/installation/ for further information.
Step 2: You can use docker pull
to download images first, or just launch a container with docker run
:
root@hd:/home/hd# sudo docker pull paddledev/paddle:cpu-demo-latest cpu-demo-latest: Pulling from paddledev/paddle 862a3e9af0ae: Pull complete 6498e51874bf: Pull complete 159ebdd1959b: Pull complete 0fdbedd3771a: Pull complete 7a1f7116d1e3: Pull complete cf3b261b873d: Pull complete a45605e2b3be: Pull complete Digest: sha256:89a590a9906fd2c6e789190f6df45f22c7fe5f8805a96ec74b9456a519d09151 Status: Downloaded newer image for paddledev/paddle:cpu-demo-latest root@hd:/home/hd# docker images REPOSITORY TAG IMAGE ID CREATED SIZE paddledev/paddle cpu-demo-latest b92f6d4594c8 5 hours ago 1.978 GB hello-world latest ff1fef95caaa 10 weeks ago 1.848 kB root@hd:/home/hd# sudo docker run -it paddledev/paddle:cpu-demo-latest root@ea0f7a52f0da:/# ls bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin sys usr root@ea0f7a52f0da:/#
Note: there exists a error in the Chinese guide provided by Badu.(http://www.paddlepaddle.org/doc_cn/build_and_install/install/docker_install.html)
$ docker run -it paddledev/paddlepaddle:latest-cpu
should be replaced by
$ docker run -it paddledev/paddle:cpu-latest
You can also choose other paddlepaddle images, Baidu provide six docker images
- paddledev/paddle:cpu-latest: PaddlePaddle CPU binary image.
- paddledev/paddle:gpu-latest: PaddlePaddle GPU binary image.
- paddledev/paddle:cpu-devel-latest: PaddlePaddle CPU binary image plus source code.
- paddledev/paddle:gpu-devel-latest: PaddlePaddle GPU binary image plus source code.
- paddledev/paddle:cpu-demo-latest: PaddlePaddle CPU binary image plus source code and demo
- paddledev/paddle:gpu-demo-latest: PaddlePaddle GPU binary image plus source code and demo
Tags with latest will be replaced by a released version.