docker / docker/cli

Docker login to registry in windows server 2016 - Error saving credentials

Open
#1,263 19 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/authentication area/distribution platform/desktop platform/windows
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Hi ,

I am using windows server 2016 with docker for windows .

docker info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 105
Server Version: 18.06.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d64c661f1d51c48782c9cec8fda7604785f93587
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.93-linuxkit-aufs
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d000400
ID: LDIE:JDCD:KNOR:RNPH:7MWV:MNKE:I2LH:3NMM:ZERH:M7HE:MWAI:Q4RW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 23
Goroutines: 48
System Time: 2018-08-02T14:33:25.5407319Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

I am using jenkins pipeline for build docker images and it's build and tag the images but when i am trying to do docker login before push, i am getting this error :

"WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: A specified logon session does not exist. It may already have been terminated."

This is not happen to me when i am with logon active user .

Thanks ,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker login entry point and reproduce the credential-saving failure on Windows Server 2016 when no user session is active. Compare it with login under an active user, then trace the credential-storage path and verify that registry credentials can be saved and used for a push without the logon-session error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
authentication, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.