Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

enhancement: normalize file paths in config.json to use forward slashes #2509

Open
Kosta-Github opened this issue Dec 7, 2015 · 1 comment

Comments

@Kosta-Github
Copy link

I would like to normalize the file paths stored in the config.json file to always use forward slashes /. Using forward slashes works on all platforms including Windows.

This would allow us to check in the machine configs into version control and share them within a team using different platforms (Linux, OSX, and Windows). Right now, this doesn't work for machines created on a Windows system, because the file paths to the SSH keys HostOptions.AuthOptions.CaCertPath (and corresponding other properties) contain backward slashes \ and the files cannot be opened on non-Windows systems (e.g., certs\\ca.pem).

However, the other way round - creating a machine on a non-Windows system and using the created config.json on a Windows system thereafter - is not a problem...

BTW, I am calling docker-machine with a custom storage path option like this:

docker-machine --storage-path=. create ...
@jeanlaurent
Copy link
Member

Good point, I like it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants