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

Specified working directory explicitly for 'docker exec' command - to align behavior with last docker fix #3392

Conversation

anatolybolshakov
Copy link
Contributor

@anatolybolshakov anatolybolshakov commented May 7, 2021

There was a fix in moby repo - previously 'docker exec' worked fine for non-root users with root working directory, but it stopped working after recent update, which led to issues with containers where /root is the current working directory.
See ticket for more info.

PR changes include:

  • Fix for the issue - explicitly specified working directory for current container user - so commands inside of the container will be executed successfully

  • Added set up of CurrentUserName for container - so we could pass proper username to working directory (home directory for current container user)

  • Tested changes manually for container hseeberger/scala-sbt:graalvm-ce-20.0.0-java11_1.4.0_2.13.3)

@anatolybolshakov anatolybolshakov requested a review from a team May 7, 2021 12:14
Copy link
Contributor

@EzzhevNikita EzzhevNikita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Also tested these changes manually, seems like this works as expected

@anatolybolshakov anatolybolshakov requested a review from a team May 13, 2021 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants