Hi Tien,

Make sure that before you run 'oc cluster up' your DOCKER_HOST is pointing
to the docker-machine that you just created:
eval "$(docker-machine env openshift)"

and make sure that 'docker info' also returns your insecure registry
setting.

On Mon, Apr 30, 2018 at 7:12 AM, Tien Hung Nguyen <[email protected]>
wrote:

> Hi,
>
> I'm trying to start OpenShift Origin on Docker Toolbox (Boot2Docker) which
> uses VirtualBox to start Docker.
>
> However, I'm getting the following error:
>
> $ oc cluster up
> Starting OpenShift using openshift/origin:v3.6.1 ...
> -- Checking OpenShift client ... OK
> -- Checking Docker client ... OK
> -- Checking Docker version ... OK
> -- Checking for existing OpenShift container ... OK
> -- Checking for openshift/origin:v3.6.1 image ... OK
> -- Checking Docker daemon configuration ... FAIL
>    Error: did not detect an --insecure-registry argument on the Docker
> daemon
>    Solution:
>
>      Ensure that the Docker daemon is running with the following argument:
>         --insecure-registry 172.30.0.0/16
>
>      You can run this command with --create-machine to create a machine
> with the
>      right argument.
>
>
> I have already added the insecure-registry by the following commands:
>
>
>    - docker-machine create openshift --engine-insecure-registry
>    172.30.0.0/16
>
>
>    - oc cluster up
>
>
>
> When I do the command 'docker-machine inspect openshift' I get the
> following results:
>
> {
>     "ConfigVersion": 3,
>     "Driver": {
>         "IPAddress": "192.168.99.103",
>         "MachineName": "openshift",
>         "SSHUser": "docker",
>         "SSHPort": 54818,
>         "SSHKeyPath": "d:\\Profiles\\username\\.
> docker\\machine\\machines\\openshift\\id_rsa",
>         "StorePath": "d:\\Profiles\\username\\.docker\\machine",
>         "SwarmMaster": false,
>         "SwarmHost": "tcp://0.0.0.0:3376",
>         "SwarmDiscovery": "",
>         "VBoxManager": {},
>         "HostInterfaces": {},
>         "CPU": 1,
>         "Memory": 1024,
>         "DiskSize": 20000,
>         "NatNicType": "82540EM",
>         "Boot2DockerURL": "",
>         "Boot2DockerImportVM": "",
>         "HostDNSResolver": false,
>         "HostOnlyCIDR": "192.168.99.1/24",
>         "HostOnlyNicType": "82540EM",
>         "HostOnlyPromiscMode": "deny",
>         "UIType": "headless",
>         "HostOnlyNoDHCP": false,
>         "NoShare": false,
>         "DNSProxy": true,
>         "NoVTXCheck": false,
>         "ShareFolder": ""
>     },
>     "DriverName": "virtualbox",
>     "HostOptions": {
>         "Driver": "",
>         "Memory": 0,
>         "Disk": 0,
>         "EngineOptions": {
>             "ArbitraryFlags": [],
>             "Dns": null,
>             "GraphDir": "",
>             "Env": [],
>             "Ipv6": false,
>             "InsecureRegistry": [
>                 "172.30.0.0/16"
>             ],
>             "Labels": [],
>             "LogLevel": "",
>             "StorageDriver": "",
>             "SelinuxEnabled": false,
>             "TlsVerify": true,
>             "RegistryMirror": [],
>             "InstallURL": "https://get.docker.com";
>         },
>         "SwarmOptions": {
>             "IsSwarm": false,
>             "Address": "",
>             "Discovery": "",
>             "Agent": false,
>             "Master": false,
>             "Host": "tcp://0.0.0.0:3376",
>             "Image": "swarm:latest",
>             "Strategy": "spread",
>             "Heartbeat": 0,
>             "Overcommit": 0,
>             "ArbitraryFlags": [],
>             "ArbitraryJoinFlags": [],
>             "Env": null,
>             "IsExperimental": false
>         },
>         "AuthOptions": {
>             "CertDir": "d:\\Profiles\\username\\.docker\\machine\\certs",
>             "CaCertPath": "d:\\Profiles\\username\\.
> docker\\machine\\certs\\ca.pem",
>             "CaPrivateKeyPath": "d:\\Profiles\\username\\.
> docker\\machine\\certs\\ca-key.pem",
>             "CaCertRemotePath": "",
>             "ServerCertPath": "d:\\Profiles\\username\\.
> docker\\machine\\machines\\openshift\\server.pem",
>             "ServerKeyPath": "d:\\Profiles\\username\\.
> docker\\machine\\machines\\openshift\\server-key.pem",
>             "ClientKeyPath": "d:\\Profiles\\username\\.
> docker\\machine\\certs\\key.pem",
>             "ServerCertRemotePath": "",
>             "ServerKeyRemotePath": "",
>             "ClientCertPath": "d:\\Profiles\\username\\.
> docker\\machine\\certs\\cert.pem",
>             "ServerCertSANs": [],
>             "StorePath": "d:\\Profiles\\username\\.
> docker\\machine\\machines\\openshift"
>         }
>     },
>     "Name": "openshift"
> }
>
> Please, could you tell me why it is not working and how I can fix this in
> order to start OpenShift Origin wit Docker Toolbox?
>
> Regards
> Tien
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to