mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add vagrant user to the docker group
This commit is contained in:
parent
97779ff7cf
commit
d62df6b2b5
1 changed files with 2 additions and 0 deletions
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -39,6 +39,8 @@ Vagrant::Config.run do |config|
|
||||||
"echo 'Installation of VBox Guest Additions is proceeding in the background.'; " \
|
"echo 'Installation of VBox Guest Additions is proceeding in the background.'; " \
|
||||||
"echo '\"vagrant reload\" can be used in about 2 minutes to activate the new guest additions.'; "
|
"echo '\"vagrant reload\" can be used in about 2 minutes to activate the new guest additions.'; "
|
||||||
end
|
end
|
||||||
|
# Add vagrant user to the docker group
|
||||||
|
pkg_cmd << "usermod -a -G docker vagrant; "
|
||||||
# Activate new kernel
|
# Activate new kernel
|
||||||
pkg_cmd << "shutdown -r +1; "
|
pkg_cmd << "shutdown -r +1; "
|
||||||
config.vm.provision :shell, :inline => pkg_cmd
|
config.vm.provision :shell, :inline => pkg_cmd
|
||||||
|
|
Loading…
Reference in a new issue