Merge pull request #567 from vbatts/tutorial

tutorial: pull the redis image first
This commit is contained in:
Mrunal Patel 2017-06-06 14:59:27 -07:00 committed by GitHub
commit 7c56d20988

View file

@ -324,9 +324,10 @@ Annotations:
### Create a Redis container inside the Pod ### Create a Redis container inside the Pod
Use the `crioctl` command to create a redis container from a container configuration and attach it to the Pod created earlier: Use the `crioctl` command to pull the redis image, create a redis container from a container configuration and attach it to the Pod created earlier:
``` ```
sudo crioctl image pull redis:alpine
CONTAINER_ID=$(sudo crioctl ctr create --pod $POD_ID --config test/testdata/container_redis.json) CONTAINER_ID=$(sudo crioctl ctr create --pod $POD_ID --config test/testdata/container_redis.json)
``` ```