Skip to content

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
Development

Successfully merging this pull request may close these issues.

cfn submit fails because pip install exited with non-zero status code Docker build not supported on windows: module 'os' has no attribute 'geteuid'
3 participants