Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is /etc/docker/key.json ?

Tags:

docker

It looks like it contains a bunch of hashes but i cant seem to figure out what its for.

Would there be any harm in it being lost ?

Does it contain sensitive information ?

like image 477
Nic Avatar asked Nov 30 '17 12:11

Nic


People also ask

Where is etc docker daemon json?

Edit the daemon. json file, which is usually located in /etc/docker/ . You may need to create this file, if it does not yet exist.

Where is daemon json on Centos?

The config can be found in /var/snap/docker/current/config/daemon. json .

What is the docker daemon?

The Docker daemon ( dockerd ) listens for Docker API requests and manages Docker objects such as images, containers, networks, and volumes. A daemon can also communicate with other daemons to manage Docker services.


1 Answers

This is the dockerd key for TLS connections, in web format, that docker uses when connecting to other TLS servers like registries. It's automatically generated by the docker engine on startup, so there's no risk if deleted. You should treat it as sensitive since TLS connections using an exposed key are not secure.

More details are available here: https://github.com/moby/moby/issues/7667

like image 190
BMitch Avatar answered Nov 16 '22 00:11

BMitch