devcontainers / devcontainers/features
Docker-in-docker: Can`t docker login
- Lenguaje dominante
- Shell
- Estrellas
- 1.5k
- Forks
- 622
- Merge medio
- 6 d 53 min
- PR fusionados (30 d)
- 9
Descripción
In a docker container with ghcr.io/devcontainers/features/docker-in-docker:2, I can't do a `docker login`. This is what I get:
`vscode ➜ /workspaces/teste $ docker login
Authenticating with existing credentials...
Error saving credentials: error storing credentials - err: exit status 1, out: 'Docker credential command not supported without credential helper: store.'`
This is my devcontainer.json:
`// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker
{
"name": "Docker in Docker",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true",
"moby": "true"
}
}
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "docker --version",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}`
No Dockerfile nor docker-compose.yml
Guía de contribución
Línea de trabajo
Start by reproducing the reported `docker login` failure with the provided devcontainer.json and the docker-in-docker feature configuration; there is no Dockerfile or Compose file. Inspect how the feature configures Docker credential storage and verify the result by confirming that docker login can save credentials without the reported credential-helper error.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker
- Área
- devops, infrastructure
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100