README.md in open-dock-0.1.5 vs README.md in open-dock-0.1.6

- old
+ new

@@ -118,10 +118,12 @@ disk_size_gb: 10 ``` ##Configure hosted CONTAINERS (Docker) +To use this command you need [Docker](https://docs.docker.com/installation/) installed in the server. + In this file we can configure all containers to run in the host provided in the name: ```yml www: hostname: lebrijo.com @@ -148,11 +150,11 @@ # image: ubuntu/postgresql ``` `ops ship example.com` will create all containers configured on 'containers/example.com.yml' file -Note: host SSH credentials (id_rsa.pub and authorized_keys) are copied by default to container, in order to have the same access to conainer. +Note: host SSH credentials (id_rsa.pub and authorized_keys) are copied by default to container, in order to have the same access to container. ### Shipping your local Docker You can create a file `containers/localhost.example.com.yml` where you can define containers. And launch them on your workstation: @@ -164,19 +166,45 @@ * If [host_name] includes "localhost" string, it is assumed that containers are shipped as docker containers in local workstation ## Configure Containers (are nodes for Chef) +To use this command you need: + +* Chef installed in your nodes +* SSHd running in your nodes + Configuration with chef commands * `ops configure HOST_NAME`: configure with chef all containers in host. Here you need to install knife-solo gem. * Equivalent to: knife solo cook root@[HOST_NAME] -p [each container_ssh_port] * `--container CONTAINER_NAME` to configure one container (default: '--container all') By convention: -* "root" is the user in all containers +* "root" is the user by default in all containers * Each container configuration is defined in a Chef node: `nodes/[host_name]/[container_name].json` + +``` +# Configure all containers in 'example.com' host +ops configure example.com +# Configure 'www' container in 'example.com' host +ops configure example.com --container www +# == knife solo cook root@example.com nodes/example.com/www.json -p 2222 +``` + +## SSH connections + +SSH connection to host or container: + +``` +ops ssh HOST_NAME [CONTAINER_NAME] +``` + +Assuming SSHd installed in containers and hosts, you can + +* Access to host: `ops ssh example.com` equivalent to `ssh root@example.com` +* Access to 'www' container: `ops ssh example.com www` equivalent to `ssh root@example.com -p 2222` ## Commands Create/delete domain names, create/delete hosts and ship/unship hosts: \ No newline at end of file