Skip to content

Commit

Permalink
Merge pull request #935 from TrimBiggs/remove-old-troubleshooting
Browse files Browse the repository at this point in the history
Remove reference to DOCKER_HOST from troubleshooting guide
  • Loading branch information
TrimBiggs committed Apr 22, 2016
2 parents c91ec2d + 40866ad commit 1515285
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@

# Troubleshooting

## `sudo docker run` and environment variables.
## Running `sudo calicoctl ...` with Environment Variables

If you use `sudo` for commands like `docker run`, remember that your environment
variables will not be transferred to the `sudo` environment. You can set environment
variables for `sudo` commands like this.
If you use `sudo` for commands like `calicoctl node`, remember that your environment
variables will not be transferred to the `sudo` environment. You can run `sudo` with
the `-E` flag to include your environment variables:

sudo DOCKER_HOST=localhost:2377 docker run -td -e CALICO_IP=192.168.100.1 busybox
sudo -E calicoctl node

or you can set environment variables for `sudo` commands like this:

sudo ETCD_AUTHORITY=172.25.0.1:2379 calicoctl node

## Ubuntu (or GNOME) NetworkManager

Expand Down

0 comments on commit 1515285

Please sign in to comment.