unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Add insecure registries to dockerd: simple etc file
@ 2023-12-26 16:48 Théo Tyburn
  0 siblings, 0 replies; only message in thread
From: Théo Tyburn @ 2023-12-26 16:48 UTC (permalink / raw)
  To: help-guix@gnu.org

Hi guix,

I am trying to add some registries to dockerd. It seems it is not
possible to do this via environment variable, so I can't just modify the
configuration of docker-service-type. The standard way to add insecure
registries is via /etc/docker/daemon.json.

So I tried adding
(simple-service 'docker-insecure-registries etc-service-type
                      `(("docker/daemon.json" ,(plain-file "docker-daemon.json"
														   "{\"insecure-registries\":[\"myserver:5000\"}"))))
But I get `guix system: error: symlink: File exists: "/etc/docker"`

If I make "docker/daemon.json" to "/docker/daemon.json" the build fails
and the logs say: `ice-9/eval.scm:619:8: In procedure mkdir: Permission
denied`

How can I add this etc file in the docker directory ?

Cheers,

Théo



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-26 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 16:48 Add insecure registries to dockerd: simple etc file Théo Tyburn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).