@saltyang
2016-06-06T13:29:35.000000Z
字数 1008
阅读 905
Dockerfile
docker run --name mbkserver -p
docker run --name mbk_redis -p 6379:6379 -d redis redis-server --requirepass 111111 --appendonly yes
docker run -it --link mbk_redis:redis --rm redis redis-cli -h redis -p 6379 -a 111111
docker run -it --link mbk_cassandra:cassandra --rm cassandra cqlsh cassandra
create keyspace mbackup with replication={'class': 'SimpleStrategy', 'replication_factor': 1};
docker run -it --link mbk_mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
alter database mbackup character set utf-8;
docker run -it --link mbk_redis:redis --rm redis redis-cli -h redis -p 6379
docker run --privileged=true --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/cgroup:/cgroup:ro --volume=/var/lib/docker/:/var/lib/docker:ro --publish=8484:8080 --detach=true --name=cadvisor google/cadvisor:latest