Vagrant: Allow running the "docker" command as the vagrant user
This adds the setting of DOCKER_HOST into the kuryr_rc file, and moves the sourcing of said file into .bash_profile upon user login. With this change, you can now login to the Vagrant VM and run docker commands as the vagrant user. Change-Id: If9b27b63b1dd017471714e18e70c2bf2138e65db Signed-off-by: Kyle Mestery <mestery@mestery.com>
This commit is contained in:
parent
eefe1dbd64
commit
849f32ee12
@ -3,3 +3,4 @@ export SERVICE_PASSWORD=pass
|
||||
export SERVICE_TENANT_NAME=admin
|
||||
export SERVICE_TOKEN=pass
|
||||
export IDENTITY_URL=http://127.0.0.1:5000/v2.0
|
||||
export DOCKER_HOST="tcp://0.0.0.0:2375"
|
||||
|
@ -7,4 +7,4 @@ export OS_HOST_IP=172.68.5.10
|
||||
bash /vagrant/devstack.sh "$1"
|
||||
|
||||
#set environment variables for kuryr
|
||||
su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bashrc"
|
||||
su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bash_profile"
|
||||
|
Loading…
x
Reference in New Issue
Block a user