λ¨Έμ μ΄ μ€ν μ€μ΄κ³ docker-machine ssh xxx
μ¬μ©νμ¬ ν΄λΉ λ¨Έμ μ λ‘κ·ΈμΈν μ μμ΅λλ€.
κ·Έλ¬λ docker-machine env xxx
μμν μ€λ¨λ©λλ€. λλ²κΉ
μΆλ ₯μ "νΈμ€νΈκ° λ€μ΄λμμ΅λλ€"λΌκ³ νμλ©λλ€. νμ§λ§
docker-machine ls
쀬μ΄
"μ΄λ¦ νμ± λλΌμ΄λ² μν URL SWARM
dev-test virtualbox μ€ν tcp://192.168.99.100 :2376 "
κ°λ₯ν κ΄λ ¨ λ¬Έμ : https://github.com/docker/machine/issues/1168
λ컀 λ¨Έμ λ²μ : v0.3.0
μ 체 μ 보:
λͺ
λ Ή: docker-machine -D env dev-test
μ°μΆ:
shell: sh
executing: /usr/bin/VBoxManage showvminfo dev-test --machinereadable
STDOUT: name="dev-test"
groups="/"
ostype="Linux 2.6 / 3.x (64 bit)"
UUID="3928af02-deb5-4620-9433-0028c017030b"
CfgFile="/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.vbox"
SnapFldr="/var/root/.docker/machine/machines/dev-test/dev-test/Snapshots"
LogFldr="/var/root/.docker/machine/machines/dev-test/dev-test/Logs"
hardwareuuid="3928af02-deb5-4620-9433-0028c017030b"
memory=1024
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
chipset="piix3"
firmware="BIOS"
cpus=1
pae="on"
longmode="on"
synthcpu="off"
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
VMState="running"
VMStateChangeTime="2015-07-10T07:54:44.216000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="SATA"
storagecontrollertype0="IntelAhci"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="30"
storagecontrollerportcount0="30"
storagecontrollerbootable0="on"
"SATA-0-0"="/var/root/.docker/machine/machines/dev-test/boot2docker.iso"
"SATA-ImageUUID-0-0"="9ee6b7c5-49b9-4ec9-bc9e-6034d222da02"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="/var/root/.docker/machine/machines/dev-test/disk.vmdk"
"SATA-ImageUUID-1-0"="83cdb0e3-f525-44ee-9c1c-40dab5361d33"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
"SATA-5-0"="none"
"SATA-6-0"="none"
"SATA-7-0"="none"
"SATA-8-0"="none"
"SATA-9-0"="none"
"SATA-10-0"="none"
"SATA-11-0"="none"
"SATA-12-0"="none"
"SATA-13-0"="none"
"SATA-14-0"="none"
"SATA-15-0"="none"
"SATA-16-0"="none"
"SATA-17-0"="none"
"SATA-18-0"="none"
"SATA-19-0"="none"
"SATA-20-0"="none"
"SATA-21-0"="none"
"SATA-22-0"="none"
"SATA-23-0"="none"
"SATA-24-0"="none"
"SATA-25-0"="none"
"SATA-26-0"="none"
"SATA-27-0"="none"
"SATA-28-0"="none"
"SATA-29-0"="none"
natnet1="nat"
macaddress1="080027CA87FE"
cableconnected1="on"
nic1="nat"
nictype1="82540EM"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="ssh,tcp,127.0.0.1,50762,,22"
hostonlyadapter2="vboxnet1"
macaddress2="0800276E6AB8"
cableconnected2="on"
nic2="hostonly"
nictype2="82540EM"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
lpt1="off"
lpt2="off"
audio="none"
clipboard="disabled"
draganddrop="disabled"
SessionType="headless"
VideoMode="720,400,0"<strong i="21">@0</strong>,0
vrde="off"
usb="off"
ehci="off"
SharedFolderNameMachineMapping1="Users"
SharedFolderPathMachineMapping1="/Users"
VRDEActiveConnection="off"
VRDEClients=0
vcpenabled="off"
vcpscreens=0
vcpfile="/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
GuestOSType="Linux26_64"
GuestAdditionsRunLevel=1
GuestAdditionsVersion="4.3.28 r100309"
GuestAdditionsFacility_VirtualBox Base Driver=50,1436514900104
GuestAdditionsFacility_Seamless Mode=0,1436514900104
GuestAdditionsFacility_Graphics Mode=0,1436514900104
STDERR:
Using SSH client type: external
About to run SSH command:
ip addr show dev eth1
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker<strong i="22">@localhost</strong> ip addr show dev eth1] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
SSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff
inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link
valid_lft forever preferred_lft forever
SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff
inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link
valid_lft forever preferred_lft forever
END SSH
invalid certs detected; regenerating for 192.168.99.100:2376
command=configureAuth machine=dev-test
Using SSH client type: external
About to run SSH command:
cat /etc/os-release
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker<strong i="23">@localhost</strong> cat /etc/os-release] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
SSH cmd err, output: <nil>: NAME=Boot2Docker
VERSION=1.7.0
ID=boot2docker
ID_LIKE=tcl
VERSION_ID=1.7.0
PRETTY_NAME="Boot2Docker 1.7.0 (TCL 6.3); master : 7960f90 - Thu Jun 18 18:31:45 UTC 2015"
ANSI_COLOR="1;34"
HOME_URL="http://boot2docker.io"
SUPPORT_URL="https://github.com/boot2docker/boot2docker"
BUG_REPORT_URL="https://github.com/boot2docker/boot2docker/issues"
found compatible host: boot2docker
Using SSH client type: external
About to run SSH command:
sudo hostname dev-test && echo "dev-test" | sudo tee /var/lib/boot2docker/etc/hostname
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker<strong i="24">@localhost</strong> sudo hostname dev-test && echo "dev-test" | sudo tee /var/lib/boot2docker/etc/hostname] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
SSH cmd err, output: <nil>: dev-test
executing: /usr/bin/VBoxManage showvminfo dev-test --machinereadable
STDOUT: name="dev-test"
groups="/"
ostype="Linux 2.6 / 3.x (64 bit)"
UUID="3928af02-deb5-4620-9433-0028c017030b"
CfgFile="/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.vbox"
SnapFldr="/var/root/.docker/machine/machines/dev-test/dev-test/Snapshots"
LogFldr="/var/root/.docker/machine/machines/dev-test/dev-test/Logs"
hardwareuuid="3928af02-deb5-4620-9433-0028c017030b"
memory=1024
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
chipset="piix3"
firmware="BIOS"
cpus=1
pae="on"
longmode="on"
synthcpu="off"
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
VMState="running"
VMStateChangeTime="2015-07-10T07:54:44.216000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="SATA"
storagecontrollertype0="IntelAhci"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="30"
storagecontrollerportcount0="30"
storagecontrollerbootable0="on"
"SATA-0-0"="/var/root/.docker/machine/machines/dev-test/boot2docker.iso"
"SATA-ImageUUID-0-0"="9ee6b7c5-49b9-4ec9-bc9e-6034d222da02"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="/var/root/.docker/machine/machines/dev-test/disk.vmdk"
"SATA-ImageUUID-1-0"="83cdb0e3-f525-44ee-9c1c-40dab5361d33"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
"SATA-5-0"="none"
"SATA-6-0"="none"
"SATA-7-0"="none"
"SATA-8-0"="none"
"SATA-9-0"="none"
"SATA-10-0"="none"
"SATA-11-0"="none"
"SATA-12-0"="none"
"SATA-13-0"="none"
"SATA-14-0"="none"
"SATA-15-0"="none"
"SATA-16-0"="none"
"SATA-17-0"="none"
"SATA-18-0"="none"
"SATA-19-0"="none"
"SATA-20-0"="none"
"SATA-21-0"="none"
"SATA-22-0"="none"
"SATA-23-0"="none"
"SATA-24-0"="none"
"SATA-25-0"="none"
"SATA-26-0"="none"
"SATA-27-0"="none"
"SATA-28-0"="none"
"SATA-29-0"="none"
natnet1="nat"
macaddress1="080027CA87FE"
cableconnected1="on"
nic1="nat"
nictype1="82540EM"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="ssh,tcp,127.0.0.1,50762,,22"
hostonlyadapter2="vboxnet1"
macaddress2="0800276E6AB8"
cableconnected2="on"
nic2="hostonly"
nictype2="82540EM"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
lpt1="off"
lpt2="off"
audio="none"
clipboard="disabled"
draganddrop="disabled"
SessionType="headless"
VideoMode="720,400,0"<strong i="25">@0</strong>,0
vrde="off"
usb="off"
ehci="off"
SharedFolderNameMachineMapping1="Users"
SharedFolderPathMachineMapping1="/Users"
VRDEActiveConnection="off"
VRDEClients=0
vcpenabled="off"
vcpscreens=0
vcpfile="/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
GuestOSType="Linux26_64"
GuestAdditionsRunLevel=1
GuestAdditionsVersion="4.3.28 r100309"
GuestAdditionsFacility_VirtualBox Base Driver=50,1436514900104
GuestAdditionsFacility_Seamless Mode=0,1436514900104
GuestAdditionsFacility_Graphics Mode=0,1436514900104
STDERR:
Using SSH client type: external
About to run SSH command:
ip addr show dev eth1
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker<strong i="26">@localhost</strong> ip addr show dev eth1] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
SSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff
inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link
valid_lft forever preferred_lft forever
SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff
inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link
valid_lft forever preferred_lft forever
END SSH
Daemon not responding yet: dial tcp 192.168.99.100:2376: host is down
Daemon not responding yet: dial tcp 192.168.99.100:2376: host is down
Daemon not responding yet: dial tcp 192.168.99.100:2376: host is down
Windows 7 OSμ λΉμ·ν λ¬Έμ κ° μμ΅λλ€. λ€μμ λ‘κ·Έ νμΌμ μμ§ μ λλ€.
νΉν λ΄ ~/.profileμ μμ λ "docker-machine env machinename"μ΄ λ§μ΄ μ€λ¨λλ κ²μ μ μ μμ΅λλ€. μ΄λ‘ μΈν΄ μ ν°λ―Έλμ΄ μ€λ¨λκ³ μ½ 50%μ μκ°μ΄ μμλμ§ μμ΅λλ€. νμ¬ μ ν μ Έμ ctrl+cλ‘ μ§μ νκ³ 2μ΄ νμ λ€λ₯Έ μ Έμ μμ±νλ©΄ μμ μ μννλ κ²½ν₯μ΄ μμ΅λλ€.
μ/νμ± ν°λ―Έλμμ μ¬μμ°νκΈ° μ΄λ ΅κ³ μ ν°λ―Έλμ μμ±ν λ ν¨μ¬ λ μμ£Ό λ°μνλ κ²½ν₯μ΄ μμ΅λλ€.
OSX 10.10.4, λ컀 λ¨Έμ 0.3.0. μ΄λ¬ν λ¬Έμ λ 0.2.xμλ μμμ΅λλ€.
μ΄μν μ’ λ£ μν 255μ λμΌν λ¬Έμ κ° μμ΅λλ€.
docker-machine -D env docker
shell: bash
executing: /Applications/VMware Fusion.app/Contents/Library/vmrun list
MAC address in VMX: 00:0c:29:b6:95:bb
IP found in DHCP lease table: 172.16.1.131
invalid certs detected; regenerating for 172.16.1.131:2376
command=configureAuth machine=docker
executing: /Applications/VMware Fusion.app/Contents/Library/vmrun list
MAC address in VMX: 00:0c:29:b6:95:bb
IP found in DHCP lease table: 172.16.1.131
Using SSH client type: external
About to run SSH command:
cat /etc/os-release
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /Users/orangeudav/.docker/machine/machines/docker/id_rsa -p 22 [email protected] cat /etc/os-release] [] <nil> <nil> <nil> [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>}
<HAAAAAANGIIING HERE>
SSH cmd err, output: exit status 255:
Error getting SSH command: exit status 255
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://172.16.1.131:2376"
export DOCKER_CERT_PATH="/Users/orangeudav/.docker/machine/machines/docker"
export DOCKER_MACHINE_NAME="docker"
# Run this command to configure your shell:
# eval "$(docker-machine env docker)"
Virtualbox λλΌμ΄λ²μ© MacOSXμμ μ΄ λ¬Έμ λ₯Ό μ¬νν μ μμ΅λλ€. μ΄ λ¬Έμ λ μΌλ°μ μΌλ‘ κ°μΈ λ€νΈμν¬μ λν κ²½λ‘(docker cliμμ μ¬μ©νλ κ²½λ‘)κ° λλ½λ κ²½μ°μ λ°μν©λλ€.
μ κ²½μ° μ΄ κ²½λ‘κ° λλ½λ κ²μΌλ‘ μμ¬λλ μ΄μ μ€ νλλ κ°μΈ λ€νΈμν¬ κ²½λ‘λ₯Ό μλ§μΌλ‘ λ§λλ κ²½ν₯μ΄ μλ VPNμ μ¬μ©νκ³ μκΈ° λλ¬Έμ
λλ€. μ΄μ λν μμ μ¬νμ λ€μκ³Ό κ°μ΄ μ€ννλ κ²μ
λλ€.
sudo route add -net 192.168.99.0/24 -interface vboxnet6
μ¬κΈ°μ 192.168.99.0/24
λ boot2dockerμμ μ¬μ©νλ λ€νΈμν¬ λ²μμ΄κ³ vboxnet6
λ boot2docker κ°μΈ λ€νΈμν¬μ ν λΉλ μΈν°νμ΄μ€μ
λλ€.
@chantra μ μ루μ
μ μλνμ§λ§ νΈλ¦μ μννμ§ μμμ΅λλ€. docker-machine
λ νμ λͺ
λ Ήμ΄ μλ μ μ
Έμ μμ λ μ¬μ ν λ© μΆ₯λλ€ . κ·Έλ¬λ ^C
μ€λ¨νκ³ λ€μ μλνλ©΄ μλν©λλ€.
μλ νμΈμ, μ΄ λ¬Έμ κ° λ°μνλ λͺ¨λ μ¬λμκ² λ°μν μ μλ λ¬Έμ μ€ νλλ Docker λ°λͺ¬μ΄ μ€νλκ³ μμ§ μλ€λ κ²μ λλ€.
λ€μ λͺ λ Ήμ μΆλ ₯μ μλνκ±°λ λΆμ¬λ£μ μ μμ΅λκΉ(boot2dockerλ₯Ό μ€ννλ VMμ©):
$ docker-machine -D ssh machinename sudo /etc/init.d/docker restart
...
$ docker-machine -D env machinename
...
κ°μ¬ ν΄μ!
@nathanleclaire ν΄λΉ λͺ λ Ήμ μ€ννλ €κ³ νλ©΄ μ¬κΈ°μ λ©
$ docker-machine -D ssh dev sudo /etc/init.d/docker restart
executing: /usr/local/bin/VBoxManage showvminfo dev --machinereadable
STDOUT: name="dev"
groups="/"
ostype="Linux 2.6 / 3.x (64-bit)"
UUID="19ac89e0-98cf-49e8-b306-ca58878604a3"
CfgFile="/Users/inkel/.docker/machine/machines/dev/dev/dev.vbox"
SnapFldr="/Users/inkel/.docker/machine/machines/dev/dev/Snapshots"
LogFldr="/Users/inkel/.docker/machine/machines/dev/dev/Logs"
hardwareuuid="19ac89e0-98cf-49e8-b306-ca58878604a3"
memory=2048
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
chipset="piix3"
firmware="BIOS"
cpus=4
pae="on"
longmode="on"
synthcpu="off"
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
VMState="running"
VMStateChangeTime="2015-07-15T21:20:06.395000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="SATA"
storagecontrollertype0="IntelAhci"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="30"
storagecontrollerportcount0="30"
storagecontrollerbootable0="on"
"SATA-0-0"="/Users/inkel/.docker/machine/machines/dev/boot2docker.iso"
"SATA-ImageUUID-0-0"="c5d1d610-61ba-4416-8721-f65383bd9595"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="/Users/inkel/.docker/machine/machines/dev/disk.vmdk"
"SATA-ImageUUID-1-0"="9719a1db-dfaf-441e-8d8f-47ee0b18293b"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
"SATA-5-0"="none"
"SATA-6-0"="none"
"SATA-7-0"="none"
"SATA-8-0"="none"
"SATA-9-0"="none"
"SATA-10-0"="none"
"SATA-11-0"="none"
"SATA-12-0"="none"
"SATA-13-0"="none"
"SATA-14-0"="none"
"SATA-15-0"="none"
"SATA-16-0"="none"
"SATA-17-0"="none"
"SATA-18-0"="none"
"SATA-19-0"="none"
"SATA-20-0"="none"
"SATA-21-0"="none"
"SATA-22-0"="none"
"SATA-23-0"="none"
"SATA-24-0"="none"
"SATA-25-0"="none"
"SATA-26-0"="none"
"SATA-27-0"="none"
"SATA-28-0"="none"
"SATA-29-0"="none"
natnet1="nat"
macaddress1="08002743999C"
cableconnected1="on"
nic1="nat"
nictype1="virtio"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="ssh,tcp,127.0.0.1,54973,,22"
hostonlyadapter2="vboxnet5"
macaddress2="080027A3AA51"
cableconnected2="on"
nic2="hostonly"
nictype2="82540EM"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
lpt1="off"
lpt2="off"
audio="none"
clipboard="disabled"
draganddrop="disabled"
SessionType="headless"
VideoMode="720,400,0"<strong i="7">@0</strong>,0
vrde="off"
usb="off"
ehci="off"
SharedFolderNameMachineMapping1="Users"
SharedFolderPathMachineMapping1="/Users"
VRDEActiveConnection="off"
VRDEClients=0
vcpenabled="off"
vcpscreens=0
vcpfile="/Users/inkel/.docker/machine/machines/dev/dev/dev.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
GuestOSType="Linux26_64"
GuestAdditionsRunLevel=1
GuestAdditionsVersion="4.3.20 r96996"
GuestAdditionsFacility_VirtualBox Base Driver=50,1436995222662
GuestAdditionsFacility_Seamless Mode=0,1436995222662
GuestAdditionsFacility_Graphics Mode=0,1436995222662
STDERR:
Using SSH client type: external
About to run SSH command:
sudo /etc/init.d/docker restart
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /Users/inkel/.docker/machine/machines/dev/id_rsa -p 54973 docker<strong i="8">@localhost</strong> sudo /etc/init.d/docker restart] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
μλ£λλ©΄(λ§μ½ κ·Έλ λ€λ©΄) λ€μμ 무μμ λΆμ¬λ£μ κ²μ λλ€.
@inkel ν , μ±κ³΅νλ €λ©΄ κ±°μ μ¦μ μ€νλμ΄μΌ νλ―λ‘ λͺ μ΄ μ΄μ 걸리면 λ¬Έμ κ° μλ κ²μ λλ€.
λ°©κΈ μλ£λμμ΅λλ€.
SSH cmd err, output: <nil>:
νμ€ν λͺ μ΄ μ΄μμ΄ κ±Έλ Έμ΅λλ€. time
λ‘ λ€μ λ¬λ¦¬κ³ μμ΄ μΌλ§μΈμ§ νμΈν©λλ€.
$ docker-machine -D ssh dev sudo /etc/init.d/docker restart
β¦same long outputβ¦
real 5m1.197s
user 0m0.045s
sys 0m0.035s
λ€μμ μ€ννλ κ²½μ°:
$ /usr/bin/ssh -vvv -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /Users/inkel/.docker/machine/machines/dev/id_rsa -p 54973 docker<strong i="6">@localhost</strong> sudo /etc/init.d/docker restart
CLIμμ μ체μ μΌλ‘ 무μμ μ»μ΅λκΉ?
inkel<strong i="5">@miralejos</strong> ~
$ /usr/bin/ssh -vvv -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /Users/inkel/.docker/machine/machines/dev/id_rsa -p 54973 docker<strong i="6">@localhost</strong> sudo /etc/init.d/docker restart 2>&1 | pbcopy
debug1: multiplexing control connection
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [mux-control]
debug3: channel_post_mux_listener: new mux channel 1 fd 7
debug3: mux_master_read_cb: channel 1: hello sent
debug2: set_control_persist_exit_time: cancel scheduled exit
debug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4
debug2: process_mux_master_hello: channel 1 slave version 4
debug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4
debug2: process_mux_alive_check: channel 1: alive check
debug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 92
debug2: process_mux_new_session: channel 1: request tty 0, X 1, agent 0, subsys 0, term "xterm", cmd "sudo /etc/init.d/docker restart", env 1
debug3: process_mux_new_session: got fds stdin 8, stdout 9, stderr 10
debug2: fd 9 setting O_NONBLOCK
debug3: fd 10 is O_NONBLOCK
debug1: channel 2: new [client-session]
debug2: process_mux_new_session: channel_new: 2 linked to control channel 1
debug2: channel 2: send open
debug2: callback start
debug2: client_session2_setup: id 2
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 2: request env confirm 0
debug1: Sending command: sudo /etc/init.d/docker restart
debug2: channel 2: request exec confirm 1
debug3: mux_session_confirm: sending success reply
debug2: callback done
debug2: channel 2: open confirm rwindow 0 rmax 32768
debug2: channel 2: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 2
debug2: exec request accepted on channel 2
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
debug3: mux_exit_message: channel 2: exit message, evitval 0
debug1: client_input_channel_req: channel 2 rtype [email protected] reply 0
debug2: channel 2: rcvd eow
debug2: channel 2: close_read
debug2: channel 2: input open -> closed
debug2: channel 2: rcvd eof
debug2: channel 2: output open -> drain
debug2: channel 2: obuf empty
debug2: channel 2: close_write
debug2: channel 2: output drain -> closed
debug2: channel 2: rcvd close
debug3: channel 2: will not send data after close
debug2: channel 2: send close
debug2: channel 2: is dead
debug2: channel 2: gc: notify user
debug3: mux_master_session_cleanup_cb: entering for channel 2
debug2: channel 1: rcvd close
debug2: channel 1: output open -> drain
debug2: channel 1: close_read
debug2: channel 1: input open -> closed
debug2: channel 2: gc: user detached
debug2: channel 2: is dead
debug2: channel 2: garbage collecting
debug1: channel 2: free: client-session, nchannels 3
debug3: channel 2: status: The following connections are open:
#2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)
debug2: channel 1: obuf empty
debug2: channel 1: close_write
debug2: channel 1: output drain -> closed
debug2: channel 1: is dead (local)
debug2: channel 1: gc: notify user
debug3: mux_master_control_cleanup_cb: entering for channel 1
debug2: channel 1: gc: user detached
debug2: channel 1: is dead (local)
debug2: channel 1: garbage collecting
debug1: channel 1: free: mux-control, nchannels 2
debug3: channel 1: status: The following connections are open:
debug2: set_control_persist_exit_time: schedule exit in 300 seconds
inkel<strong i="7">@miralejos</strong> ~
$
μ΄μ μ견μ μ€μλ₯Ό ν κ² κ°μ΅λλ€. μ΄κ²μ΄ μ¬λ°λ₯Έ κ²°κ³Όμ λλ€.
$ /usr/bin/ssh -vvv -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /Users/inkel/.docker/machine/machines/dev/id_rsa -p 54973 docker<strong i="6">@localhost</strong> sudo /etc/init.d/docker restart 2>&1
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/inkel/.ssh/config
debug1: /Users/inkel/.ssh/config line 3: Applying options for *
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/Users/inkel/.ssh/master-docker<strong i="7">@localhost</strong>:54973" does not exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [::1] port 54973.
debug2: fd 5 setting O_NONBLOCK
debug1: connect to address ::1 port 54973: Connection refused
debug1: Connecting to localhost [127.0.0.1] port 54973.
debug2: fd 5 setting O_NONBLOCK
debug1: fd 5 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 10000 ms remain after connect
debug3: Incorrect RSA1 identifier
debug3: Could not load "/Users/inkel/.docker/machine/machines/dev/id_rsa" as a RSA1 public key
debug1: identity file /Users/inkel/.docker/machine/machines/dev/id_rsa type 1
debug1: identity file /Users/inkel/.docker/machine/machines/dev/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0
debug1: match: OpenSSH_6.0 pat OpenSSH*
debug2: fd 5 setting O_NONBLOCK
debug3: put_host_port: [localhost]:54973
debug3: load_hostkeys: loading entries for host "[localhost]:54973" from file "/dev/null"
debug3: load_hostkeys: loaded 0 keys
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[email protected],[email protected],aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[email protected],[email protected],aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-sha1,[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-sha1,[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 124/256
debug2: bits set: 526/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 4c:94:a7:2d:b9:b3:b5:a2:1d:37:89:c8:84:d9:ed:bf
debug3: put_host_port: [127.0.0.1]:54973
debug3: put_host_port: [localhost]:54973
debug3: load_hostkeys: loading entries for host "[localhost]:54973" from file "/dev/null"
debug3: load_hostkeys: loaded 0 keys
debug1: checking without port identifier
debug3: load_hostkeys: loading entries for host "localhost" from file "/dev/null"
debug3: load_hostkeys: loaded 0 keys
Warning: Permanently added '[localhost]:54973' (RSA) to the list of known hosts.
debug2: bits set: 519/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /Users/inkel/.docker/machine/machines/dev/id_rsa (0x7feeca600150), explicit
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred publickey,keyboard-interactive
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/inkel/.docker/machine/machines/dev/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fp 8b:f1:19:49:34:18:61:8c:ba:cd:a5:65:99:aa:ce:ea
debug3: sign_and_send_pubkey: RSA 8b:f1:19:49:34:18:61:8c:ba:cd:a5:65:99:aa:ce:ea
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to localhost ([127.0.0.1]:54973).
debug1: setting up multiplex master socket
debug3: muxserver_listen: temporary control path /Users/inkel/.ssh/master-docker<strong i="8">@localhost</strong>:54973.bGmwLqk9AzPAnw76
debug2: fd 6 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 0: new [/Users/inkel/.ssh/master-docker<strong i="9">@localhost</strong>:54973]
debug3: muxserver_listen: mux listener channel 0 fd 6
debug1: control_persist_detach: backgrounding master process
debug2: control_persist_detach: background process is 15146
debug2: fd 6 setting O_NONBLOCK
debug1: forking to background
debug1: Entering interactive session.
debug2: set_control_persist_exit_time: schedule exit in 300 seconds
debug1: multiplexing control connection
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [mux-control]
debug3: channel_post_mux_listener: new mux channel 1 fd 7
debug3: mux_master_read_cb: channel 1: hello sent
debug2: set_control_persist_exit_time: cancel scheduled exit
debug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4
debug2: process_mux_master_hello: channel 1 slave version 4
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4
debug2: process_mux_alive_check: channel 1: alive check
debug3: mux_client_request_alive: done pid = 15147
debug3: mux_client_request_session: session request sent
debug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 92
debug2: process_mux_new_session: channel 1: request tty 0, X 1, agent 0, subsys 0, term "xterm", cmd "sudo /etc/init.d/docker restart", env 1
debug3: process_mux_new_session: got fds stdin 8, stdout 9, stderr 10
debug1: channel 2: new [client-session]
debug2: process_mux_new_session: channel_new: 2 linked to control channel 1
debug2: channel 2: send open
debug2: callback start
debug2: client_session2_setup: id 2
debug2: fd 5 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x08
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 2: request env confirm 0
debug1: Sending command: sudo /etc/init.d/docker restart
debug2: channel 2: request exec confirm 1
debug3: mux_session_confirm: sending success reply
debug2: callback done
debug2: channel 2: open confirm rwindow 0 rmax 32768
debug1: mux_client_request_session: master session id: 2
debug2: channel 2: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 2
debug2: exec request accepted on channel 2
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
debug3: mux_exit_message: channel 2: exit message, evitval 0
debug1: client_input_channel_req: channel 2 rtype [email protected] reply 0
debug2: channel 2: rcvd eow
debug2: channel 2: close_read
debug2: channel 2: input open -> closed
debug2: channel 2: rcvd eof
debug2: channel 2: output open -> drain
debug2: channel 2: obuf empty
debug2: channel 2: close_write
debug2: channel 2: output drain -> closed
debug2: channel 2: rcvd close
debug3: channel 2: will not send data after close
debug2: channel 2: send close
debug2: channel 2: is dead
debug2: channel 2: gc: notify user
debug3: mux_master_session_cleanup_cb: entering for channel 2
debug2: channel 1: rcvd close
debug2: channel 1: output open -> drain
debug2: channel 1: close_read
debug2: channel 1: input open -> closed
debug2: channel 2: gc: user detached
debug2: channel 2: is dead
debug2: channel 2: garbage collecting
debug1: channel 2: free: client-session, nchannels 3
debug3: channel 2: status: The following connections are open:
#2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)
debug2: channel 1: obuf empty
debug2: channel 1: close_write
debug2: channel 1: output drain -> closed
debug2: channel 1: is dead (local)
debug2: channel 1: gc: notify user
debug3: mux_master_control_cleanup_cb: entering for channel 1
debug2: channel 1: gc: user detached
debug2: channel 1: is dead (local)
debug2: channel 1: garbage collecting
debug1: channel 1: free: mux-control, nchannels 2
debug3: channel 1: status: The following connections are open:
debug2: set_control_persist_exit_time: schedule exit in 300 seconds
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 0
μ... λͺ λΆ ν λ΄ νλ©΄μ λ€μμ΄ λνλ©λλ€.
debug1: ControlPersist timeout expired
debug1: channel 0: free: /Users/inkel/.ssh/master-docker<strong i="6">@localhost</strong>:54973, nchannels 1
debug3: channel 0: status: The following connections are open:
debug3: fd 0 is not O_NONBLOCK
debug3: fd 1 is not O_NONBLOCK
Transferred: sent 3104, received 2480 bytes, in 301.1 seconds
Bytes per second: sent 10.3, received 8.2
debug1: Exit status -1
@inkel μ΄μν. λ€νΈμν¬μ λν΄ μκ°ν μ μλ VPN λλ λΉμ μμ μΈ μ€μ μ΄ μμ΅λκΉ?
μλ, λ΄κ° μκ°ν μ μλ κ²μ μλλ€. λ©°μΉ μ λλ μ¬μ ν 0.1.0
νκ³ μλ²½νκ² μλνλ€κ° 0.3.0
λ‘ μ
λ°μ΄νΈνκ³ νμ¬μ κ°μ΄ νν€νκ² μλνκΈ° μμνμ΅λλ€. κ°μ λ¬Έμ λ₯Ό κ²ͺκ³ μλ λ€λ₯Έ λλ£ @fsaraviaκ° μμ΅λλ€.
@nathanleclaire λλ£μ μ΄μΌκΈ°ν ν λ€μ λ²μ μ μ¬μ©νκ³ μμμ λ°κ²¬νμ΅λλ€. νλΈλ₯μ μλ λ²μ μ΄ μ΄ μ€λ₯λ₯Ό μ 곡νκΈ° λλ¬Έμ λλ€.
$ docker-machine -v
docker-machine version 0.3.0 (0a251fe)
κ·Έλ μ΅μ λ²μ μ μ¬μ©νκ³ μμΌλ―λ‘ brew install docker-machine
λ²μ μ μμ νλλ° μ΄μ μλνλ κ² κ°μ΅λλ€.
@inkel μ’μ΅λλ€ . μλνκ² λμ΄ κΈ°μ©λλ€.
λλ μ±κ³΅νμ§ λͺ»ν μ΅μ λ²μ μ docker-machineμΌλ‘ λ€μ μλνμ΅λλ€. git shellμ μ¬μ©νμ¬ Windows 7μμ μ€ν μ€μ λλ€. λͺ¨λ λ¨κ³μ ν΄λΉ μΆλ ₯μ μ¬κΈ°μ μμ΅λλ€ .
out.log νμΌμλ μ£Όμ λ¨κ³κ° ν¬ν¨λμ΄ μμ΅λλ€. κ·Έλ° λ€μ docker-machine-create.log λ° docker-machine-env.logκ° μμ΅λλ€.
/var/lib/boot2docker/tls/μμ /c/Users/Pedro/.docker/machine/machines/test/λ‘ μΈμ¦μ νμΌμ μλμΌλ‘ 볡μ¬ν ν
λλ λ λ€λ₯Έ μλλ₯Όνκ³ κ²°κ³Ό λ‘κ·Έλ docker-machine-env-2.logμ
λλ€.
λ§μ§λ§μ λ΄λ³΄λΈ νκ²½ λ³μλ₯Ό μ¬μ©νλλΌλ μ¬μ ν μ°κ²°ν μ μμ΅λλ€.
docker ps
κ°) μκ° μ΄κ³Ό μ€λ₯λ‘ μ’
λ£λμμ΅λλ€.
VMμ΄ μμλμκ³ λ컀 μλΉμ€κ° λ§κ°μ§κ³ μμμ΅λλ€.
μ»΄ν¨ν°μμ sshν μ μκ³ λ컀 μλΉμ€κ° μ¬λ°λ₯Έ ν¬νΈ(2376)μμ μμ λκΈ° μ€μ
λλ€.
docker<strong i="15">@test</strong>:~$ netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 10.0.2.15:22 10.0.2.2:57901 ESTABLISHED
tcp 0 0 :::2376 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] SEQPACKET LISTENING 14092 /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 17142 /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 17656 /var/run/docker.sock
unix 3 [ ] DGRAM 14101
unix 3 [ ] STREAM CONNECTED 22738
unix 3 [ ] STREAM CONNECTED 22737
unix 3 [ ] DGRAM 14100
ν₯λ―Έλ‘μ΄ μ μ boot2dockerκ° μ λλ‘ μλνλ€λ κ²μ
λλ€.
μκ°μ΄ λ μμΌμ κ°μ?
κ°μ¬ ν΄μ.
μ΄ λ¬Έμ λ μ¬ννκΈ°κ° μ λ§ μ΄λ ΅μ΅λλ€... vmboxnet0 λ° vmboxnet1μ μ μΈν λͺ¨λ vmboxnet_xλ₯Ό μμ νκ³ μ»΄ν¨ν°λ₯Ό μ¬λΆν (λ컀 λ¨Έμ μ΄ μλ)ν ν λ¬Έμ κ° μ¬λΌμ‘μ΅λλ€.
μ»΄ν¨ν°λ₯Ό λͺ λ² μ μ λͺ¨λλ‘ μ νν λ€μ λ€μ μλν ν λμΌν λ¬Έμ κ° λ°μνκΈ° μμνμ΅λλ€. μμ ν λ€μ μμν΄μΌ νλ μκ°μ΄ μμ λ λ€μ μλνκ³ μ΄λ€ μΌμ΄ μΌμ΄λλμ§ νμΈνκ² μ΅λλ€.
λͺ¨λ Docker μ±μ μ΅μ λ²μ μ΄ μμ΅λλ€. VirtualBox VMμ ꡬμΆνλ Linux Ubuntuμ Docker MachineμΌλ‘ λͺ μ£Ό λμ λ¬Έμ λ₯Ό μΌκ³ λμμ΅λλ€. λ°©κΈ Docker Swarmμ μΆκ°νλλ° λ¬Έμ κ° λͺ λ°° λ μ
νλμμ΅λλ€(λ μμ£Ό). λλ 3κ°μ μ€μ λ¨Έμ μ λ§λλ λ° 2μκ°μ 보λλ€. μ¬λΆν
νλ©΄ μΌλ°μ μΌλ‘ ν΄κ²°λμ§λ§ ν©λ¦¬μ μ΄μ§ μμ΅λλ€. docker-machineμ --debugλ₯Ό μ¬μ©νλ©΄ λ€λ₯Έ λκΈ μμ±μκ° μ§μ ν λλ‘ μ€λ¨λ μμΉλ₯Ό νμΈν μ μμ΅λλ€. Daemon not responding yet: dial tcp 192.168.99.XXX:2376: no route to host
κ° μλ λͺ κ³³μμ λ©μΆλ κ²μ 보μμ§λ§ μ΄ μμ μμ μκ° μ΄κ³Όκ° νμ λ°μν©λλ€.
STDERR:
Using SSH client type: external
About to run SSH command:
ip addr show dev eth1
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /home/gstafford/.docker/machine/machines/swarm-node-02/id_rsa -p 58710 docker<strong i="7">@localhost</strong> ip addr show dev eth1] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
SSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:9d:c5:3d brd ff:ff:ff:ff:ff:ff
inet 192.168.99.105/24 brd 192.168.99.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe9d:c53d/64 scope link
valid_lft forever preferred_lft forever
SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:9d:c5:3d brd ff:ff:ff:ff:ff:ff
inet 192.168.99.105/24 brd 192.168.99.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe9d:c53d/64 scope link
valid_lft forever preferred_lft forever
END SSH
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Daemon not responding yet: dial tcp 192.168.99.105:2376: no route to host
Error creating machine: Maximum number of retries (60) exceeded
You will want to check the provider to make sure the machine and associated resources were properly removed.
@garystafford μ¬μ©μμ ssh ꡬμ±μ μ΄λ»κ² μκ²Όμ΅λκΉ? μ°Έμ‘°: https://github.com/docker/machine/issues/1591
@chantra μ μ루μ μ΄ μ μκ²
λ°©κΈ μ΄κ²μ λΆλͺμ³€μ΅λλ€. @chantra μ μ루μ λ μ μκ² ν¨κ³Όμ μ΄μμ΅λλ€. Cisco AnyConnect: λΆλ Έ:
λν Cisco AnyConnect. λΌμ°ν ν μ΄λΈμ΄ μ΄μ κ°μ μννΈμ¨μ΄μ μν΄ λ§κ°μ§ κ²½μ° μμ νλλ‘ κΆμ₯νλ κ²μ¬λ₯Ό μΆκ°ν μ μλ€κ³ μκ°νμ§ μμ΅λκΉ? μ§λ¨νλ κ²μ λ§€μ° μ€λ§μ€λ½μ΅λλ€. λλ μ¬μ ν μ±κ³΅μ μΌλ‘ λΆν λ λ컀 λ¨Έμ μΌλ‘ sshν μ μμκ³ , μ΄κ²μμ ν λ‘ μ μ°ΎκΈ° μ μ λ§μ ν°μΌμ μ΄ν΄λ΄μΌ νμ΅λλ€.
λΌμ°ν ν μ΄λΈμ΄ μ΄μ κ°μ μννΈμ¨μ΄μ μν΄ λ§κ°μ§ κ²½μ° μμ νλλ‘ κΆμ₯νλ κ²μ¬λ₯Ό μΆκ°ν μ μλ€κ³ μκ°νμ§ μμ΅λκΉ?
μ΄κ²μ μ€μ λ‘ λ΄κ° μ§κΈ κ³ λ €νκ³ μλ μ νν μ루μ μ λλ€. λ§μ κ²½μ° μ€μ λ‘ μΈμ€ν΄μ€ μμ±μ μ±κ³΅μ μΌλ‘ μλ£νκ³ IP μ£Όμλ₯Ό μ»μ μ μλ κ²μ²λΌ 보μ΄μ§λ§ μ°κ²°ν μ μμ΅λλ€.
λν μλ©΄ ν μ°κ²°ν μ μλ λ컀 λ¬Έμ κ° μμ΅λλ€.
Windows 10μμ @chantra μ μ루μ μ μ΄λ»κ² νμκ² μ΅λκΉ?
λλ λͺ λ²μ μλ©΄ νμλμ΄ λ¬Έμ λ₯Ό κ²½ννμ΅λλ€.
λ€μ μμνλ©΄ λ¬Έμ κ° ν΄κ²°λμμ΅λλ€..
μ΄κ²μ λ컀 λ¨Έμ μ΄ μ€ν μ€μ΄κ³ VPNμ μ¬μ©ν λμλ λ°μνμ΅λλ€. λͺ
λ Ήμ΄ μμν μ€λ¨λ©λλ€.
κ·Έλ¬λ VPNμμ λ΄λ Έλλ μμ€ν
μ΄ docker-machine restart <MACHINE-NAME>
λ€μ μμνκ³ λ€μ μλνκΈ° μμνμ΅λλ€.
μ΄κ²μ λ컀 λ¨Έμ μ΄ μ€ν μ€μ΄κ³ VPNμ μ¬μ©ν λμλ λ°μνμ΅λλ€. λͺ λ Ήμ΄ μμν μ€λ¨λ©λλ€.
κ·Έλ¬λ λλ VPNμμ λ΄λ Έκ³ κΈ°κ³λ₯Ό λ€μ μμνμ΅λλ€. docker-machine restartκ·Έλ¦¬κ³ λ€μ μλνκΈ° μμνμ΅λλ€.
μ΄κ²μ λμκ²λ μΌμ΄λ¬μ΅λλ€. λ컀 λ¨Έμ μ μ€ννκ³ VPNμ μ°κ²°νκ³ VPNμ λκ³ docker env <MACHINE-NAME>
κ° μ€λ¨λμμ΅λλ€.
κ·Έλ¬λ docker-machine restart <MACHINE-NAME>
μ νμ§λ§ λμμ΄ λμ§ μμμ΅λλ€. docker env <MACHINE-NAME>
κ° μ¬μ ν 맀λ¬λ € μμ΅λλ€.
Cisco AnyConnect VPNμ μ¬μ©νλ Mac OS 10.10.4μμλ μ΄ λ¬Έμ κ° λ°μν©λλ€.
λ컀 λ¨Έμ μ¬μμ κΈ°λ³Έκ°μ μλνμ§λ§ λ¬Έμ κ° μ§μλ©λλ€.
@chantra μ μ루μ μ΄ μ μκ² ν¨κ³Όμ μΈ κ² κ°μ΅λλ€. λ΄ μ»΄ν¨ν°μμ μΈν°νμ΄μ€λ vboxnet0μ΄μμ΅λλ€(mac ν°λ―Έλμμ ifconfigλ₯Ό μ¬μ©νμ¬ μ°Ύμμ΅λλ€). VPNμ μ¬μ©ν΄μΌ ν λλ§λ€ μ¬λΆν νλ κ²λ³΄λ€ ν¨μ¬ μ½μ΅λλ€.
λ΄κ° μ¬μ©νκ³ μλ VPNμ λν΄ μΈκΈνλμ§ νμ€νμ§ μμ§λ§ FWIWμμλ ciscoλ μ¬μ©νκ³ μμ΅λλ€.
μ λ컀λ₯νΈ....
2015λ
9μ 23μΌ μμμΌ μ€ν 7μ 52λΆ, Joe McGlynn [email protected]
μΌλ€:
Cisco AnyConnectκ° μ€μΉλ Mac OS 10.10.4μμλ μ΄ λ¬Έμ κ° λ°μν©λλ€.
VPN.
- μλ‘ λΆν νλ©΄ λμ»€κ° μ μλν©λλ€.
- VPNμ μΌκ³ λ€λ‘ λ¬Όλ¬λλ€
- docker-machine env κΈ°λ³Έκ°μ΄ λ©μΆ₯λλ€.
λ컀 λ¨Έμ μ¬μμ κΈ°λ³Έκ°μ μλνμ§λ§ λ¬Έμ κ° μ§μλ©λλ€.
@chantra https://github.com/chantra μ μ루μ μ΄ μ μκ² ν¨κ³Όμ μΈ κ² κ°μ΅λλ€. μ
λ΄ μ»΄ν¨ν°μ μΈν°νμ΄μ€λ vboxnet0μ΄μμ΅λλ€(macμμ ifconfigλ₯Ό μ¬μ©νμ¬ μ°Ύμμ΅λλ€.
ν°λ―Έλ) VPNμ μ¬μ©ν΄μΌ ν λλ§λ€ μ¬λΆν νλ κ²λ³΄λ€ ν¨μ¬ μ½μ΅λλ€.β
μ΄ μ΄λ©μΌμ μ§μ λ΅μ₯νκ±°λ GitHubμμ νμΈνμΈμ.
https://github.com/docker/machine/issues/1500#issuecomment -142788894.
FWIW λν OS X 10.10.5μμ Cisco AnyConnect VPNμ μ¬μ©νκ³ μμκ³ λμ openconnectλ₯Ό μλνλλ° λ¬Έμ λ₯Ό νΌνλ κ² κ°μ΅λλ€.
@ronen ,
@ChrisRut λ€, λ°©κΈ μ΄ λ¬Έμ λ₯Ό ν΄κ²°νλ €κ³ ν λ openconnectμ λν΄ λ°°μ μ΅λλ€. κ΅Ώλ°μ΄ μ λ컀λ₯νΈ! λλ openconnectκ° μ¬μ©νκΈ° μ‘°κΈ λ²κ±°λ‘λ€λ κ²μ μμμΌλ―λ‘ "vpn up" λ° "vpn down"μ μ λ ₯ν μ μλ λΉ λ₯Έ λνΌλ₯Ό ν¨κ» λμ‘μ΅λλ€. κ΄μ¬μ΄ μμΌμλ©΄ https://gist.github.com/ronen/7d486adbde5d6bfd2472μ μμ΅λλ€.
μ μ¬ν μ¦μμ λν΄ μ¬λ¬ λ¬Έμ κ° μλ κ² κ°μμ μ μκΈ° ν Windows 10(λλ λ€λ₯Έ λ²μ ) νΈμ€νΈμμ λ¬Έμ λ₯Ό κ²½ννλ μ¬λλ€μ μν΄ #1934λ₯Ό μ΄μμ΅λλ€. λ¬Έμ λ₯Ό λΆλ¦¬νκΈ° μν΄ μ΄ λ¬Έμ μ μ λͺ©μ VPN λ€νΈμν¬ λ¬Έμ μ κ΄λ ¨μν€λ κ²μ΄ μ’μ΅λλ€.
λ΄ νΈμ€νΈ μμ€ν μ΄ μ μ λͺ¨λλ‘ μ νλ νμ μ΄ λ¬Έμ κ° λ°μνκ³ λμ€μ λ€μ λνλ©λλ€. κ²°κ΅ c:usersdan.dockermachine ν΄λ(μΊμ μ μΈ)μμ λͺ¨λ κ²μ μμ ν λ€μ λ€μ λ§λλλ€. νΈμ€νΈ μμ€ν μ μ¬λΆν νλ κ²λ³΄λ€ ν¨μ¬ λΉ λ¦ λλ€! ;)
μ, κ·Έλ¦¬κ³ κ·Έλ κ²νκΈ° μ μ μΌλΆ νλ‘μΈμ€λ₯Ό μ’ λ£ν΄μΌν©λλ€. 3κ°μ 'VBoxHeadless.exe' νλ‘μΈμ€, 3κ°μ 'VBoxNetDHCP.exe' λ° 'VirtualBox μΈν°νμ΄μ€'κ° μλ κ²½ν₯μ΄ μμ΅λλ€.
λ
ΈνΈλΆμ κΉ¨μ°κ³ μ΄λ¦μ΄ "dev"μΈ λ컀 λ¨Έμ μΈμ€ν΄μ€λ₯Ό μμ νμ΅λλ€.
λ€μ λͺ
λ Ήμ μ€ννμ¬ λ κ°μ μ κ°μ λ¨Έμ μ μμ±νμ΅λλ€.
$ docker-machine create \
--driver virtualbox \
--engine-env HTTP_PROXY=http://10.206.246.20:8080 \
--engine-env HTTPS_PROXY=http://10.206.246.20:8080 \
--virtualbox-hostonly-cidr "169.254.0.20/16" \
registry
$ eval $(docker-machine env registry --shell=bash)
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ docker run -d -p 5000:5000 --restart=always --name registry registry
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7001a595cc28 registry "docker-registry" 27 seconds ago Up 24 seconds 0.0.0.0:5000->5000/tcp registry
$ docker-machine ip registry
169.254.0.100
$ docker-machine create \
--driver virtualbox \
--engine-env HTTP_PROXY=http://10.206.246.20:8080 \
--engine-env HTTPS_PROXY=http://10.206.246.20:8080 \
--engine-insecure-registry "$(docker-machine env registry):5000" \
--virtualbox-hostonly-cidr "169.254.0.20/16" \
dev
$ docker-machine ip dev
169.254.0.101
$ eval $(docker-machine env dev --shell=bash)
docker-machine env dev --shell=bash
λ λͺ λΆ λμ λ©μΆκ³ λ€μμ stderrμ λ€νν©λλ€.
C:\Program Files\ConEmu>docker-machine -D env dev --shell=bash > c:\tmp\docker-machine_env.log
Maximum number of retries (60) exceeded
stdout λ‘κ·Έ μΆλ ₯μ μ΄ Gist μμ μ°Ύμ μ μμ΅λλ€.
μ΄μν μ μ μ΅λ μ¬μλ νμμ λλ¬ν ν μ¬λ°λ₯Έ μΆλ ₯μ΄ λ€νλλ€λ κ²μ λλ€. λ‘κ·Έ λμ μ°Έμ‘°νμμμ€.
λ€μμ μκ°μ΄ μ§μ λ stdout μΆλ ₯μ λλ€.
$ time docker-machine env dev --shell=bash
Maximum number of retries (60) exceeded
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://169.254.0.101:2376"
export DOCKER_CERT_PATH="C:\Users\mrumpf\.docker\machine\machines\dev"
export DOCKER_MACHINE_NAME="dev"
# Run this command to configure your shell:
# eval "$(C:\cygwin64\home\mrumpf\bin\docker-machine.exe env dev)"
real 4m8.802s
user 0m0.015s
sys 0m0.078s
κ·Έλ¦¬κ³ μ μ λ―μ€μ΄μ§λλ°...
첫 λ²μ§Έ κ°μ λ¨Έμ μ λν΄ λμΌν λͺ
λ Ήμ΄ λ¬Έμ μμ΄ μ€νλ©λλ€.
$ time docker-machine env registry --shell=bash
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://169.254.0.100:2376"
export DOCKER_CERT_PATH="C:\Users\mrumpf\.docker\machine\machines\registry"
export DOCKER_MACHINE_NAME="registry"
# Run this command to configure your shell:
# eval "$(C:\cygwin64\home\mrumpf\bin\docker-machine.exe env registry)"
real 0m2.129s
user 0m0.000s
sys 0m0.093s
@mrumpf *PROXY μ΅μ
(μ: --engine-env HTTP_PROXY=http://10.206.246.20:8080/
)μ μ¬λμλ₯Ό μΆκ°νλ©΄ μ±κ³΅ν©λκΉ μλλ©΄ κ³μ μ€ν¨ν©λκΉ?
μ§κΈ λ°λΉμ 8.2μμ μ΄κ²μ λ°κ³ μμ΅λλ€.
μ΄ λ¬Έμ λ₯Ό μΌμΌν€λ κ²μΌλ‘ 보μ΄λ VPN μννΈμ¨μ΄ λͺ©λ‘μ Jupiter Junos Pulseλ₯Ό μΆκ°νμμμ€.
λͺ¨λ VPNμ΄ "μΌλ°" λΌμ°ν μ μ¬μ μνλ λμΌν κΈ°λ³Έ μ μλ₯Ό κ°μ§κ³ μκΈ° λλ¬Έμ _any_ VPNμ΄ μ΄ μμ μ μνν κ°λ₯μ±μ΄ λμ΅λλ€.
μ λ°μ΄νΈ: "λΆν μ°κ²°"(λ΄ μ€μΉμμ νμ©νλ μ΅μ . λ€λ₯Έ VPN μλ²μ μ°κ²°)μ μ¬μ©νμ¬ μ΄κ²μ νΌνλ κ² κ°μ΅λλ€.
무μμ κΈ°λ€λ¦½λλ€? μ΄λ€ μ’ λ₯μ VPNμ΄λ ββνλ‘μλ μ¬μ©νμ§ μμ΅λλ€...
VPNμ λ€νΈμν¬ κ΅¬μ±μ μλ§μΌλ‘ λ§λλ λ§μ κ²λ€ μ€ νλμΌ λΏμ λλ€. λ³΄λ€ μΌλ°μ μΌλ‘ λ€νΈμν¬ μ°κ²°μ λ³κ²½ μ¬νμ λ€μκ³Ό κ°μ μ μμ΅λλ€(κ·Έλ¦¬κ³ μ¬κΈ°μλ "λ€νΈμνΉ"μΌλ‘ μκ°νμ§ μμ μ μλ λͺ κ°μ§ μ¬νμ΄ ν¬ν¨λ¨).
VPN μ¬λ‘λ "λΆν " μ΅μ μ μ 곡ν μ μκΈ° λλ¬Έμ μ£Όλͺ©ν λ§ν©λλ€. μ΄ μ΅μ μ μ΄ μμΈμΌλ‘ μΈν΄ Docker μ°κ²°μ΄ νλ€λ¦¬λ κ²μ λ°©μ§ν μ μμ΅λλ€. κ·Έλ¬λ λΆν VPNμ λ€λ₯Έ λͺ¨λ κ²λ€μ΄ μλ§μ΄ λλ κ²μ λ§μ§λ λͺ»ν κ²μ λλ€.
λλ ꡬμ RJ45 μΌμ΄λΈμ μ¬μ©νκ³ μμ΅λλ€ ...
docker-machineμ΄ μ΄λ¬ν μ΄λ²€νΈμ λ―Όκ°ν μ΄μ λ₯Ό μ΄ν΄ν μ μμ΅λλ€.
λλ rj45 νλ¬κ·Έ/μΈνλ¬κ·Έ, μμ΄νμ΄ μ€μμΉμ μλνλ€. λ΄ μͺ½μλ λ¬Έμ κ° μμ΅λλ€.
μ²λ¦¬ μκ°μ΄ νμν μ μμ΅λκΉ? λλ λ€μμ μννλ μ Έ ν¨μλ‘ κ³μ μ€νν©λλ€.
docker-machine stop "${VM}"
docker-machine start "${VM}"
docker-machine ssh "${VM}" sudo /etc/init.docker restart
eval $(docker-machine env "${VM}"
μ΄ λͺ λ Ήμ ν λ²μ νλμ© μκ°λ½μΌλ‘ μννλ©΄ μ λ©λλ€. κ·Έλ¬λ μ€ν¬λ¦½νΈμμ μ€νν λ λμΌν λͺ λ Ή μνμ€κ° ββμ€λ¨(λλ λͺ λΆμ΄ μμ)λ³΄λ€ ν λ² μλν©λλ€.
@mrumpf μ μ°κ²°νλ μ΄ VMμ λ΄ docker-machine ls
λͺ©λ‘μμ λ λ²μ§Έμ
λλ€.
@jrep μ, κ·Έλ° κ²½μ°μλ λ°λͺ¬μ΄ μμλκ³ μμ² μλ½μ μμν λκΉμ§ μ μ κΈ°λ€λ €μΌ ν©λλ€. μ΄κ²μ΄ λ¨Έμ μ νλ‘λΉμ λνλ λμ λ°λͺ¬μ΄ λ€μ μμλλ μ¬μ΄μ Dockerλ₯Ό κΈ°λ€λ¦¬λ μ½λκ° μλ μ΄μ μ
λλ€. νλ¦Όμμ΄ start
μμλ μ΄λ₯Ό νμΈν΄μΌ ν©λλ€.
μ΄ λ¬Έμ λ λ§€μ° κΈΈκ³ λ§μ μλ΅μ΄ ν¬ν¨λμ΄ μμ΅λλ€. λκ΅°κ°κ° κ³μν΄μ μ μ¬ν λ¬Έμ λ₯Ό κ²ͺλλ€λ©΄ https://github.com/docker/machine/issues/new μμ λ€μμ ν¬ν¨ν μμΈν μ 보μ ν¨κ» μ νλͺ©μ μ¬μμμ€.
--debug
νλκ·Έκ° μλ μ€μλ λͺ
λ Ήμ μΆλ ₯~/.docker/machine/machines/name/name
μμ λ‘κ·Έν©λλ€.κ°μ¬ ν΄μ!
κ°μ₯ μ μ©ν λκΈ
Virtualbox λλΌμ΄λ²μ© MacOSXμμ μ΄ λ¬Έμ λ₯Ό μ¬νν μ μμ΅λλ€. μ΄ λ¬Έμ λ μΌλ°μ μΌλ‘ κ°μΈ λ€νΈμν¬μ λν κ²½λ‘(docker cliμμ μ¬μ©νλ κ²½λ‘)κ° λλ½λ κ²½μ°μ λ°μν©λλ€.
μ κ²½μ° μ΄ κ²½λ‘κ° λλ½λ κ²μΌλ‘ μμ¬λλ μ΄μ μ€ νλλ κ°μΈ λ€νΈμν¬ κ²½λ‘λ₯Ό μλ§μΌλ‘ λ§λλ κ²½ν₯μ΄ μλ VPNμ μ¬μ©νκ³ μκΈ° λλ¬Έμ λλ€. μ΄μ λν μμ μ¬νμ λ€μκ³Ό κ°μ΄ μ€ννλ κ²μ λλ€.
μ¬κΈ°μ
192.168.99.0/24
λ boot2dockerμμ μ¬μ©νλ λ€νΈμν¬ λ²μμ΄κ³vboxnet6
λ boot2docker κ°μΈ λ€νΈμν¬μ ν λΉλ μΈν°νμ΄μ€μ λλ€.