Boot2docker: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „=ca from own pki= *boot2docker ssh *sudu -i *cat ca.pem >> /etc/ssl/certs/ca-certificates.crt */etc/init.d/docker restart =forward from osxhost to boot2docke…“
 
Thomas (Diskussion | Beiträge)
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=ca from own pki=
=ca from own pki=
*boot2docker ssh
*boot2docker ssh
*sudu -i
*sudo -i
*cat ca.pem >> /etc/ssl/certs/ca-certificates.crt
*cat ca.pem >> /etc/ssl/certs/ca-certificates.crt
*/etc/init.d/docker restart
*/etc/init.d/docker restart


=Create a new Boot2Docker VM.=
* # boot2docker init
This creates a new virtual machine. You only need to run this command once.
=Start the boot2docker VM.=
* #  boot2docker start
=Display the environment variables for the Docker client.=
* #  boot2docker shellinit
Writing /Users/mary/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/mary/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/mary/.boot2docker/certs/boot2docker-vm/key.pem
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/mary/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1
=The specific paths and address on your machine will be different=
To set the environment variables in your shell do the following:
* # $(boot2docker shellinit)


=forward from osxhost to boot2docker-vm=
=forward from osxhost to boot2docker-vm=
Zeile 17: Zeile 44:


*https://github.com/docker/docker/issues/4007
*https://github.com/docker/docker/issues/4007
*https://docs.docker.com/installation/mac/

Aktuelle Version vom 8. März 2015, 17:36 Uhr

ca from own pki

  • boot2docker ssh
  • sudo -i
  • cat ca.pem >> /etc/ssl/certs/ca-certificates.crt
  • /etc/init.d/docker restart


Create a new Boot2Docker VM.

  • # boot2docker init

This creates a new virtual machine. You only need to run this command once.

Start the boot2docker VM.

  • # boot2docker start

Display the environment variables for the Docker client.

  • # boot2docker shellinit
Writing /Users/mary/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/mary/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/mary/.boot2docker/certs/boot2docker-vm/key.pem
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/mary/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

The specific paths and address on your machine will be different

To set the environment variables in your shell do the following:

  • # $(boot2docker shellinit)

forward from osxhost to boot2docker-vm

  • VBoxManage controlvm boot2docker-vm natpf1 "name,tcp,127.0.0.1,1234,,1234"

untestet

for i in {10000..10999}; do
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$i,tcp,,$i,,$i";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$i,udp,,$i,,$i";
done