owncloud / administration

Some Administration tools for ownCloud
54 stars 42 forks source link

[docker] ocstart-docker.sh asks for password #10

Open PVince81 opened 10 years ago

PVince81 commented 10 years ago

I used the build script for the docker images, then ran this: ./ocstart-docker.sh -o ubuntu -s apache -d mysql

It asks for password:

Start ownCloud server apache on port 8888 with database mysql
docker run -dv /data-vol:/data-vol --name=oc-data data-vol-ubuntu 
docker run -dp 127.0.0.1:11211:11211 -h memcached --name memcached memcached-ubuntu 
docker run -dp 3306:3306 -v /data-vol/mysql:/var/lib/mysql -e MYSQL_PASS=rootpass --name=oc-mysql -h oc-mysql db-mysql-ubuntu /sbin/my_init --enable-insecure-key
 on IP 172.17.0.57
docker run -dp 127.0.0.1:8888:80 -h oc-server-1 --name=oc-server-1  --link=oc-mysql:db  --link=memcached:memcached --volumes-from oc-data oc-apache-ubuntu /sbin/my_init --enable-insecure-key
d8d4ee702e47a978d6b048b753421952350029f63cd97859963b01af29c762e6
 on IP 172.17.0.58
docker run -dp 127.0.0.1:8889:80 -h oc-server-2 --name=oc-server-2  --link=oc-mysql:db  --link=memcached:memcached --volumes-from oc-data oc-apache-ubuntu /sbin/my_init --enable-insecure-key
8f62d5f5c492370f0febcbdee32b2d559703a5b6d76705897a77b2233da613f7
 on IP 172.17.0.59
docker run -dp 127.0.0.1:8890:80 -h oc-server-3 --name=oc-server-3  --link=oc-mysql:db  --link=memcached:memcached --volumes-from oc-data oc-apache-ubuntu /sbin/my_init --enable-insecure-key
4e94eb0da9ec395949a5e42fd83b04aedcd94d31feac7bd004abae3901863779
 on IP 172.17.0.60
Wait for bootup root@172.17.0.58's password: 

@felixboehm did I miss something, maybe adding an ssh key locally ? If yes, please add it to the README.

felixboehm commented 10 years ago

The phusion/baseimage provides an included ssh key, which is activated with the --enable-insecure-key option in the docker run command. The private key is in configs/insecure_key.

The ssh options below are working on my system

ssh -o'UserKnownHostsFile /dev/null' -oStrictHostKeyChecking=no -i configs/insecure_key root@$IP

where

@PVince81, can you try to ssh into the docker server on the commandline and provide me your working version?

Do you have any global ssh options? See ~/.ssh/config