Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Istio in Docker

In this hands-on lab, we will be installing Istio into a Docker environment. We'll deploy an application and using routing rules to version it.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Advanced
Last updated
Sep 08, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install Istio and Its Dependencies for Docker, Then Deploy the bookinfo Application

    Add current user to docker group:

    sudo usermod -aG docker cloud_user
    

    Install docker-compose and make it executable:

    [cloud_user@host]$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose  
    [cloud_user@host]$ sudo chmod +x /usr/local/bin/docker-compose
    

    We'll run docker-compose real quick, just to make sure it works before we proceed. We'll see its help output if all is well.

    Now we can download Istio and unpack it:

    [cloud_user@host]$ wget https://github.com/istio/istio/releases/download/1.0.6/istio-1.0.6-linux.tar.gz
    [cloud_user@host]$ tar -xvf istio-1.0.6-linux.tar.gz
    

    Pre-configure kubectl for pilot:

    [cloud_user@host]$ kubectl config set-context istio --cluster=istio
    [cloud_user@host]$ kubectl config set-cluster istio --server=http://localhost:8080
    [cloud_user@host]$ kubectl config use-context istio
    

    Create a DOCKER_GATEWAY environment variable:

    [cloud_user@host]$ export DOCKER_GATEWAY=172.28.0.1:
    

    Bring up Istio's control plane:

    [cloud_user@host]$ docker-compose -f ./istio-1.0.6/install/consul/istio.yaml up -d
    

    Remember that this may need to be repeated to ensure the pilot container starts.

    Change bookinfo.yaml, and set port 30080 instead of port 9081:

    [cloud_user@host]$ sed -i 's/9081/30080/' ./istio-1.0.6/samples/bookinfo/platform/consul/bookinfo.yaml
    

    Bring up the application:

    [cloud_user@host]$ docker-compose -f ./istio-1.0.6/samples/bookinfo/platform/consul/bookinfo.yaml up -d
    

    Bring up the sidecars:

    [cloud_user@host]$ docker-compose -f ./istio-1.0.6/samples/bookinfo/platform/consul/bookinfo.sidecars.yaml up -d
    

    Point a browser at the public IP address of the server, on the correct port: http://<PUBLIC_SERVER_IP>:30080/productpage.

  2. Challenge

    Route Application Traffic to reviews Version 1 and Confirm that Version 1 (with No Stars) is Loading

    Route traffic to version 1

    kubectl apply -f ./istio-1.0.6/samples/bookinfo/platform/consul/destination-rule-all.yaml
    kubectl apply -f ./istio-1.0.6/samples/bookinfo/platform/consul/virtual-service-all-v1.yaml
    
  3. Challenge

    Route the Traffic to Version 3 of the reviews Service (with Red Stars)

    We need to modify the routing service subsets to read the labels for Version 3. Edit istio-1.0.6/samples/bookinfo/platform/consul/virtual-service-all-v1.yaml (using whatever text editor you like) and change the subset to V3 in the reviews section. Then apply the changes with:

    [cloud_user@host]$ kubectl apply -f ./istio-1.0.6/samples/bookinfo/platform/consul/virtual-service-all-v1.yaml
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight