Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get registry-mirrors from /etc/docker/daemon.json #249

Open
patsevanton opened this issue Nov 8, 2019 · 6 comments
Open

Get registry-mirrors from /etc/docker/daemon.json #249

patsevanton opened this issue Nov 8, 2019 · 6 comments

Comments

@patsevanton
Copy link

cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://docker-registry.tools.myteam.ru:10443"]
}

cm_linux_amd64 selenoid start --vnc

Using Docker

  • Your Docker API version is 1.39

Selenoid is already downloaded
Configuring Selenoid...
Processing browser "firefox"...

cm_linux_amd64 selenoid start --vnc --force 
> Using Docker
- Your Docker API version is 1.39
> Downloading Selenoid...
- Fetching tags for image aerokube/selenoid
registry.ping url=https://registry.hub.docker.com/v2/

cm_linux_amd64 version
Git Revision: 1.7.1
UTC Build Time: 2019-10-08_05:28:51PM
@vania-pooh
Copy link
Member

@patsevanton the file you are showing is dockerd (i.e. Docker daemon) configuration file. Docker client (i.e. docker command) configuration is usually stored in ~/.docker/config.json. cm already considers configuration files for docker command.

@patsevanton
Copy link
Author

cm_linux_amd64 selenoid start --vnc --force from root

 cat ~/.docker/config.json
cat: /root/.docker/config.json: No such file or directory

@vania-pooh
Copy link
Member

@patsevanton ah, got it. To use custom Docker registry cm has --registry flag.

docker login my-registry.example.com # Specify user name and password
./cm selenoid start --registry https://my-registry.example.com

@patsevanton
Copy link
Author

patsevanton commented Nov 8, 2019

cm_linux_amd64 selenoid start --vnc --force 
> Using Docker
- Your Docker API version is 1.39
> Downloading Selenoid...
- Fetching tags for image aerokube/selenoid
registry.ping url=https://registry.hub.docker.com/v2/
^C
cat /etc/docker/daemon.json 
{
  "registry-mirrors": ["https://docker-registry.tools.myteam.ru:10443"]
}
ls /etc/docker/
daemon.json  key.json
docker pull aerokube/selenoid
Using default tag: latest
latest: Pulling from aerokube/selenoid
c87736221ed0: Pull complete 
9c02c43351d6: Pull complete 
28670770ceaf: Pull complete 
Digest: sha256:234aad2a20f6e5bcd5a65b86e773a3d4a55cb76473117420f5be0b5160c8386b
Status: Downloaded newer image for aerokube/selenoid:latest
docker pull aerokube/selenoid-ui
Using default tag: latest
latest: Pulling from aerokube/selenoid-ui
bb3bc70e25d2: Pull complete 
f5d13fa1790d: Pull complete 
Digest: sha256:b27c5f9298c82edd6b7bebb41e6266a25a73fecd5331f7ed685881806a62f18e
Status: Downloaded newer image for aerokube/selenoid-ui:latest

I can download image by docker pull
I can not download image by cm_linux_amd64

@vania-pooh
Copy link
Member

@patsevanton I don't see --registry flag in your command.

@patsevanton
Copy link
Author

With --registry will work.
May be support get registry from /etc/docker/daemon.json ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants