You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Docker Desktop creates unusable environments when using custom containers that do not create the docker group as part of the build.
To Reproduce
Steps to reproduce the behavior:
Create a custom dev environment container definition - eg .docker/config.json
{
"dockerfile": "Dockerfile.devenv"
}
.docker/Dockerfile.devenv
FROM python:3-alpine
RUN pip3 install cfn-Lint
RUN cfn-lint --update-specs
Create dev environment (tested with using existing folder)
See error (and note step is still marked as successful)
Move forward assuming everything is fine, and VSCode will be unable to start the container session due to permission denied errors.
This can be resolved by adding in an addgroup step in the Dockerfile - eg
RUN addgroup --system docker
Expected behavior
Potential behaviours in order of preference - either:
a) Docker Desktop should catch the chown error and transparently create the group if required
b) The requirement for having the group present in custom containers should be documented on the dev environemtns guide, and the wizard should detect the chown error and mark the step as failed
Desktop (please complete the following information):
OS: Windows 10
Version: 21H1
Version of Docker Desktop:
You can find the version by clicking on the About Docker Desktop menu
4.3.1 (72247)
The text was updated successfully, but these errors were encountered:
Describe the bug
Docker Desktop creates unusable environments when using custom containers that do not create the
docker
group as part of the build.To Reproduce
Steps to reproduce the behavior:
.docker/config.json
.docker/Dockerfile.devenv
This can be resolved by adding in an
addgroup
step in the Dockerfile - egRUN addgroup --system docker
Expected behavior
Potential behaviours in order of preference - either:
a) Docker Desktop should catch the
chown
error and transparently create the group if requiredb) The requirement for having the group present in custom containers should be documented on the dev environemtns guide, and the wizard should detect the
chown
error and mark the step as failedDesktop (please complete the following information):
Version of Docker Desktop:
You can find the version by clicking on the
About Docker Desktop
menuThe text was updated successfully, but these errors were encountered: