Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set group executable bit on machine-specific directory and up #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zakame
Copy link

@zakame zakame commented Jul 19, 2017

Set group-executable bit on machine-specific directory and up

Ensure that the directories leading to the KVM image have enough
permission for libvirt/QEMU to traverse, especially in the case where
libvirt/QEMU group is set to to kvm/users.

Fixes #46.

Ensure that the directories leading to the KVM image have enough
permission for libvirt/QEMU to traverse, especially in the case where
libvirt/QEMU group is set to to `kvm`/`users`.

Fixes dhiltgen#46.
@zakame
Copy link
Author

zakame commented Jul 19, 2017

Tested on latest Docker CE 17.06:

[zakame:~] % docker-machine create -d kvm docker-machine-01
Creating CA: /home/zakame/.docker/machine/certs/ca.pem
Creating client certificate: /home/zakame/.docker/machine/certs/cert.pem
Running pre-create checks...
Creating machine...
(docker-machine-01) Image cache directory does not exist, creating it at /home/zakame/.docker/machine/cache...
(docker-machine-01) No default Boot2Docker ISO found locally, downloading the latest release...
(docker-machine-01) Latest release for github.com/boot2docker/boot2docker is v17.06.0-ce
(docker-machine-01) Downloading /home/zakame/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v17.06.0-ce/boot2docker.iso...
(docker-machine-01) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(docker-machine-01) Copying /home/zakame/.docker/machine/cache/boot2docker.iso to /home/zakame/.docker/machine/machines/docker-machine-01/boot2docker.iso...
(docker-machine-01) Creating SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env docker-machine-01
θ64° [zakame:~] 7m55s % docker-machine ls                             
NAME                ACTIVE   DRIVER   STATE     URL                         SWARM   DOCKER        ERRORS
docker-machine-01   -        kvm      Running   tcp://192.168.42.168:2376           v17.06.0-ce   
θ61° [zakame:~] % 

@zakame zakame changed the title Set group executable bit on machine-specific directory Set group executable bit on machine-specific directory and up Jul 19, 2017
We set directory `mode |= 0011` so check first if we're already in that
mode for the machine dir.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant