docker-machine create node without tls verification

前端 未结 3 1419
予麋鹿
予麋鹿 2020-12-05 03:25

When I create a node with docker-machine

docker-machine create -d virtualbox node1

it is created with tls verification ena

相关标签:
3条回答
  • 2020-12-05 04:03

    This worked best for me:

    docker-machine create -d virtualbox --engine-env DOCKER_TLS=no --engine-opt host=tcp://0.0.0.0:2375 node1

    This way it binds to 2375 in addition to 2376. 2375 is the tradition for non-tls daemons.

    0 讨论(0)
  • 2020-12-05 04:07

    try:

    docker-machine create -d virtualbox --engine-opt tlsverify=false node1
    

    and after running:

    eval "$(docker-machine env node1)"
    

    run:

    unset DOCKER_TLS_VERIFY
    
    0 讨论(0)
  • 2020-12-05 04:20

    I use commands below:

    docker-machine create -d virtualbox --engine-env DOCKER_TLS=no node1
    

    And then ssh to the node to execute docker commands:

    docker-machine ssh node1
    $ docker info
    
    0 讨论(0)
提交回复
热议问题