SET DOCKER_TLS_VERIFY=1 SET DOCKER_HOST=tcp://127.0.0.1:2376 SET DOCKER_CERT_PATH=C:\Users\BenedictJin\.docker\machine\machines\kafka-connect SET DOCKER_MACHINE_NAME=kafka-connect SET COMPOSE_CONVERT_WINDOWS_PATHS=true REM Run this command to configure your shell: REM @FOR /f "tokens=*" %i IN ('docker-machine env kafka-connect') DO @%i
拷贝上面输出的最后一行,去掉 REM 注释,并运行
1
$ @FOR /f "tokens=*" %i IN ('docker-machine env kafka-connect') DO @%i
$ docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
$ docker tag c42de02bd3e2 asdf2014/druid:fc95c928069537b3f3a6baf86f220b893d42fdc5 $ docker images
1 2
REPOSITORY TAG IMAGE ID CREATED SIZE asdf2014/druid fc95c928069537b3f3a6baf86f220b893d42fdc5 c42de02bd3e2 23 hours ago 689MB
1
$ docker images
1 2 3 4 5 6 7 8 9
REPOSITORY TAG IMAGE ID CREATED SIZE apache/druid 0.22.0_with_conf 5931517fd053 About a minute ago 687MB <none> <none> 4200421fc08b 16 hours ago 133MB apache/druid 0.22.0_conf 1fb62951eede 2 weeks ago 686MB <none> <none> 90c3bc4ec0af 2 weeks ago 686MB apache/druid tag c42de02bd3e2 2 weeks ago 689MB asdf2014/druid fc95c928069537b3f3a6baf86f220b893d42fdc5 c42de02bd3e2 2 weeks ago 689MB gcr.io/k8s-minikube/kicbase v0.0.26 b0c9ec980b3d 2 months ago 1.08GB maven 3.8.1-jdk-11-slim 1b6721ada2a1 3 months ago 440MB
1 2
$ docker image tag apache/druid:0.22.0_with_conf asdf2014/druid:0.22.0_with_conf $ docker images
1 2 3 4 5 6 7 8 9 10
REPOSITORY TAG IMAGE ID CREATED SIZE apache/druid 0.22.0_with_conf 5931517fd053 2 minutes ago 687MB asdf2014/druid 0.22.0_with_conf 5931517fd053 2 minutes ago 687MB <none> <none> 4200421fc08b 16 hours ago 133MB apache/druid 0.22.0_conf 1fb62951eede 2 weeks ago 686MB <none> <none> 90c3bc4ec0af 2 weeks ago 686MB apache/druid tag c42de02bd3e2 2 weeks ago 689MB asdf2014/druid fc95c928069537b3f3a6baf86f220b893d42fdc5 c42de02bd3e2 2 weeks ago 689MB gcr.io/k8s-minikube/kicbase v0.0.26 b0c9ec980b3d 2 months ago 1.08GB maven 3.8.1-jdk-11-slim 1b6721ada2a1 3 months ago 440MB
Running pre-create checks... (dataagg) No default Boot2Docker ISO found locally, downloading the latest release... Error with pre-create check: "Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 127.0.0.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."