Verify your Docker Environment
There are a few commands you can run to verify things are set up correctly:
Verify Docker environment. If these don’t work, you cannot run docker commands in your build tools. You can attempt to run the docker commands outside the container using BUILD_WITH_CONTAINER=0
.
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm docker docker ps, or
docker run -v /var/run/docker.sock.raw:/var/run/docker.sock -it --rm docker docker ps
Some docker installs require the .raw. If the first fails and the second succeeds, you can export an environment variable:
DOCKER_SOCKET_MOUNT=-v /var/run/docker.sock.raw:/var/run/docker.sock
Some users say they require sudo
and then you will need to use sudo
for your make
commands as well.
docker run -v /var/run/docker.sock:/var/run/docker.sock -it -u 501: --rm docker docker ps
This is a common failing point for non Docker Desktop users on a Mac. If you have a way to make these work on podman, rancher desktop, let us know so we can add to the wiki. Verify various make targets:
make clean build docker.proxyv2 gen lint
In https://github.com/istio/istio.io, be able to run a test locally.
kind create cluster --name istio-testing --config $ISTIO/istio/prow/config/default.yaml --image gcr.io/istio-testing/kind-node:v1.27.0
TEST_ENV=kind ADDITIONAL_CONTAINER_OPTIONS="--network host" make doc.test.profile_none TEST=ops/ambient/getting-started/test.sh
Visit istio.io to learn how to use Istio.
- Preparing for Development Mac
- Preparing for Development Linux
- Troubleshooting Development Environment
- Repository Map
- GitHub Workflow
- Github Gmail Filters
- Using the Code Base
- Developing with Minikube
- Remote Debugging
- Verify your Docker Environment
- Istio Test Framework
- Working with Prow
- Test Grid
- Code Coverage FAQ
- Writing Good Integration Tests
- Test Flakes
- Release Manager Expectations
- Preparing Istio Releases
- 1.5 Release Information
- 1.6 Release Information
- 1.7 Release Information
- 1.8 Release Information
- 1.9 Release Information
- 1.10 Release Information
- 1.11 Release Information
- 1.12 Release Information
- 1.13 Release Information
- 1.14 Release Information
- 1.15 Release Information
- 1.16 Release Information
- 1.17 Release Information
- 1.18 Release Information
- 1.19 Release Information
- 1.20 Release Information
- 1.21 Release Information
- 1.22 Release Information
- Collecting Logs and Debug Info
- Dependency FAQ
- Working with discuss.istio.io
- Developing with and hosting upon OpenShift
- Adapter Dev Guide
- Adapter Walkthrough
- Attribute Generating Adapter Walkthrough
- Route Directive Adapter Development Guide
- Out of Tree Adapter Walkthrough
- Running a Local Instance
- Template Dev Guide
- Using a Custom Adapter
- Publishing Adapters and Templates to istio.io
- Enabling Envoy Authorization Service and gRPC Access Log Service With Mixer