add instruction to pull sonic-slave image from docker registry

This commit is contained in:
lguohan 2016-12-01 13:50:46 -08:00 committed by GitHub
parent c4f0833dac
commit 154b281cfb

View File

@ -14,6 +14,12 @@ Build a docker image by [the Dockerfile](https://github.com/Azure/sonic-build-to
./build.sh sonic-slave ./build.sh sonic-slave
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --privileged local/sonic-slave bash docker run -v /var/run/docker.sock:/var/run/docker.sock -it --privileged local/sonic-slave bash
You can also download sonic-slave docker from sonicdev docker registry using following command:
docker login -u 1dafc8d7-d19c-4f58-8653-e8d904f30dab -p sonic sonicdev-microsoft.azurecr.io:443
docker pull sonicdev-microsoft.azurecr.io:443/sonic-slave
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --privileged sonicdev-microsoft.azurecr.io:443/sonic-slave bash
Note that all the below steps should be executed in the docker container, not in the host machine. Note that all the below steps should be executed in the docker container, not in the host machine.
## 2. Clone or fetch the code repository with all git submodules ## 2. Clone or fetch the code repository with all git submodules