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

--insecure-registry does not work on an existing VM #4547

Closed
win5do opened this issue Jun 21, 2019 · 16 comments
Closed

--insecure-registry does not work on an existing VM #4547

win5do opened this issue Jun 21, 2019 · 16 comments
Labels
area/registry registry related issues help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@win5do
Copy link

win5do commented Jun 21, 2019

minikube version: v1.1.1
operating system version: macOS 10.14

minikube start \
    --docker-env=HTTP_PROXY=$HTTP_PROXY \
    --docker-env=HTTPS_PROXY=$HTTPS_PROXY \
    --docker-env=NO_PROXY=$NO_PROXY \
    --registry-mirror=https://registry.docker-cn.com \
    --insecure-registry="192.168.99.1:5000"

add the option --insecure-registry="192.168.99.1:5000" is newly added. And do minikue stop & start,but the option insecure-registry does not appear in docker info. It will not take effect until do minikube delete and recreate.

I try minikube ssh and use root user edit /etc/docker/daemon.json, then systemctl restart docker, but failed. I got err same as #3800:

Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

Is there any convenient way to make it effective?

@tstromberg tstromberg changed the title The newly added start options does not take effect. --insecure-registry does not work on an existing VM Jun 21, 2019
@medyagh
Copy link
Member

medyagh commented Jun 25, 2019

I am curious, which driver are you using ? hyperkit or virtualbox?

@medyagh
Copy link
Member

medyagh commented Jun 25, 2019

do you mind sharing the minikube logs

@win5do
Copy link
Author

win5do commented Jun 27, 2019

@medyagh

I use virtualbox.

logs:

==> coredns <==

==> dmesg <==
[  +0.000004] vboxvideo: Unknown symbol ttm_bo_manager_func (err 0)
[  +0.000003] vboxvideo: Unknown symbol ttm_bo_global_init (err 0)
[  +0.000001] vboxvideo: Unknown symbol ttm_bo_default_io_mem_pfn (err 0)
[  +0.000007] vboxvideo: Unknown symbol ttm_bo_device_release (err 0)
[  +0.000012] vboxvideo: Unknown symbol ttm_bo_kunmap (err 0)
[  +0.000004] vboxvideo: Unknown symbol ttm_bo_del_sub_from_lru (err 0)
[  +0.000007] vboxvideo: Unknown symbol ttm_bo_device_init (err 0)
[  +0.000002] vboxvideo: Unknown symbol ttm_bo_init_mm (err 0)
[  +0.000001] vboxvideo: Unknown symbol ttm_bo_dma_acc_size (err 0)
[  +0.000003] vboxvideo: Unknown symbol ttm_tt_init (err 0)
[  +0.000002] vboxvideo: Unknown symbol ttm_bo_kmap (err 0)
[  +0.000007] vboxvideo: Unknown symbol ttm_bo_add_to_lru (err 0)
[  +0.000002] vboxvideo: Unknown symbol ttm_bo_unref (err 0)
[  +0.000003] vboxvideo: Unknown symbol ttm_mem_global_release (err 0)
[  +0.000002] vboxvideo: Unknown symbol ttm_mem_global_init (err 0)
[  +0.000010] vboxvideo: Unknown symbol ttm_bo_init (err 0)
[  +0.000002] vboxvideo: Unknown symbol ttm_bo_validate (err 0)
[  +0.000008] vboxvideo: Unknown symbol ttm_tt_fini (err 0)
[  +0.000002] vboxvideo: Unknown symbol ttm_bo_eviction_valuable (err 0)
[  +0.000002] vboxvideo: Unknown symbol ttm_pool_populate (err 0)
[  +0.146765] hpet1: lost 644 rtc interrupts
[  +0.016668] NFSD: the nfsdcld client tracking upcall will be removed in 3.10. Please transition to using nfsdcltrack.
[  +0.019878] hpet1: lost 1 rtc interrupts
[  +0.001909] VBoxService 5.1.38 r122592 (verbosity: 0) linux.amd64 (May  9 2018 12:22:30) release log
              00:00:00.002104 main     Log opened 2019-06-27T14:34:50.333740000Z
[  +0.000601] 00:00:00.002245 main     OS Product: Linux
[  +0.000060] 00:00:00.002812 main     OS Release: 4.15.0
[  +0.000130] 00:00:00.002867 main     OS Version: #1 SMP Thu Jun 6 15:07:18 PDT 2019
[  +0.000111] 00:00:00.003052 main     Executable: /usr/sbin/VBoxService
              00:00:00.003053 main     Process ID: 2033
              00:00:00.003054 main     Package type: LINUX_64BITS_GENERIC
[  +0.000059] 00:00:00.003109 main     5.1.38 r122592 started. Verbose level = 0
[  +5.018482] hpet1: lost 281 rtc interrupts
[  +2.971007] systemd-fstab-generator[2255]: Ignoring "noauto" for root device
[  +0.896531] systemd-fstab-generator[2391]: Ignoring "noauto" for root device
[  +1.134429] hpet1: lost 319 rtc interrupts
[  +5.004629] hpet_rtc_timer_reinit: 105 callbacks suppressed
[  +0.000010] hpet1: lost 318 rtc interrupts
[Jun27 14:35] hpet1: lost 318 rtc interrupts
[  +3.445463] systemd-fstab-generator[3214]: Ignoring "noauto" for root device
[  +1.554862] hpet1: lost 318 rtc interrupts
[  +5.002087] hpet1: lost 318 rtc interrupts
[  +5.001471] hpet_rtc_timer_reinit: 21 callbacks suppressed
[  +0.000001] hpet1: lost 319 rtc interrupts
[  +5.001130] hpet1: lost 318 rtc interrupts
[  +5.005120] hpet_rtc_timer_reinit: 3 callbacks suppressed
[  +0.000001] hpet1: lost 318 rtc interrupts
[  +0.871127] tee (4378): /proc/3621/oom_adj is deprecated, please use /proc/3621/oom_score_adj instead.
[  +4.142146] hpet_rtc_timer_reinit: 42 callbacks suppressed
[  +0.000015] hpet1: lost 319 rtc interrupts

==> kernel <==
 14:35:36 up 1 min,  0 users,  load average: 3.42, 1.01, 0.35
Linux minikube 4.15.0 #1 SMP Thu Jun 6 15:07:18 PDT 2019 x86_64 GNU/Linux

@tstromberg tstromberg added area/registry registry related issues help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence. labels Jul 18, 2019
@tstromberg tstromberg added the kind/bug Categorizes issue or PR as related to a bug. label Sep 20, 2019
@tstromberg
Copy link
Contributor

I believe the root cause here is that this flag results in a change in the systemd docker unit, but we either aren't making the change, or restarting docker for restarts now.

@jorgemoralespou
Copy link

I've added the insecure registry manually at the machine config file ~/.minikube/machines/<PROFILE_NAME>/config.json and it worked for me.

@medyagh
Copy link
Member

medyagh commented Dec 16, 2019

I feel like this is because the addon needs the minikube to be restarted, and addon enable wont enable it witrhout stop and restart

@medyagh
Copy link
Member

medyagh commented Dec 16, 2019

this seems to be a Bug ! "--insecure-registry" is not stick.

we need to make sure all the start args stick in config.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 16, 2020
@jorgemoralespou
Copy link

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 18, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 16, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 16, 2020
@sharifelgamal
Copy link
Collaborator

This is still an outstanding issue.

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Jul 22, 2020
@spowelljr
Copy link
Member

@win5do This may have been fixed in #10213. If this is still an issue try the latest version of minikube, if this is still not fixed feel free to reopen this issue, thanks.

@keliss
Copy link

keliss commented Apr 24, 2021

Looks like it is still not fixed. I'm running minikube 1.19.0, and minikube start --insecure-registry "host.minikube.internal:8082" doesn't change the /etc/docker/daemon.json file for an existing vm.

@VerdonTrigance
Copy link

Smae problem. Using --insecure-registry flag doen't change docker daemon in minikube. The file /etc/docker/daemon.json doesn't have any notions of insecure registries.

@luispabon
Copy link

Still an issue on v1.29.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/registry registry related issues help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests