When docker login
succeeds an auth token is put in ~/.dockercfg
. We are considering deploying a .dockercfg
file to EC2 instances to all running of containers against private repository images. The alternative would be to run docker login
on the instances, but I would prefer to give instances an auth token as opposed to an account password.
How long do the tokens issued by docker.io
last before they expire?