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

fix(docker): During cfn submit docker commands were not working on Windows #208

Merged
merged 2 commits into from
Nov 4, 2022

Conversation

mmaeng
Copy link
Contributor

@mmaeng mmaeng commented Nov 1, 2022

Closes #100

Docker command to run container was getting the local user euid and gid. These attributes do not exist on non-UNIX-like OSes like Windows.

Put in check for the command to complete successfully but if not to default to root:root. Windows ignores these attributes and the Docker file system has built in safeguards around this.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mmaeng mmaeng changed the title fix(docker): During cfn submit docker commands were not working on Windows fix(docker): During cfn submit docker commands were not working on Windows Nov 1, 2022
@mmaeng mmaeng merged commit c3b6338 into aws-cloudformation:master Nov 4, 2022
@mmaeng mmaeng deleted the fix/issue100-2 branch November 4, 2022 17:30
mmaeng added a commit to mmaeng/cloudformation-cli-python-plugin that referenced this pull request Nov 8, 2022
…Windows (aws-cloudformation#208)

* When on windows will not use os.geteuid() but root:root, also if call fails it will add warning message

* Change test for docker no euid to work on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants