[root@yuanxiaolong data]# docker logs 17 [1] 28 Oct 15:06:37.159# You requested maxclients of 10000 requiring at least 10032 max file descriptors. [1] 28 Oct 15:06:37.162# Redis can't set maximum open files to 10032 because of OS error: Operation not permitted. [1] 28 Oct 15:06:37.162# Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.17 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 1 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-'
[1] 28 Oct 15:06:37.169# Server started, Redis version 2.8.17 [1] 28 Oct 15:06:37.169# WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. [1] 28 Oct 15:06:37.170 * DB loaded from append only file: 0.000 seconds [1] 28 Oct 15:06:37.170 * The server is now ready to accept connections on port 6379
#!/bin/bash # if [ -z "$REDIS_MASTER_PORT_6379_TCP_ADDR" ]; then echo"REDIS_MASTER_PORT_6379_TCP_ADDR not defined. Did you run with -link?"; exit7; fi # exec allows redis-server to receive signals for clean shutdown #
[root@yuanxiaolong redis]# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE yuanxiaolong/redis-slave latest fd02ab8e3953 58 seconds ago 110.8 MB yuanxiaolong/java-service latest 2873af70208c 4 days ago 356.3 MB jwilder/nginx-proxy latest 29e1c2ae84a5 5 days ago 261.6 MB jwilder/docker-gen 0.3.49edd4b39cea0 6 days ago 116.9 MB yuanxiaolong/centos-node-hello latest 3e448b2e9bd5 7 days ago 464.3 MB java 6 a6fb766b92ed 7 days ago 352.9 MB mongo 2.697d8b6dd3b57 12 days ago 391.4 MB node latest eb23c5dc3891 2 weeks ago 728.9 MB redis latest cd8d56009b1f 2 weeks ago 110.8 MB nginx 1.7.5 d2d79aebd368 4 weeks ago 100.2 MB
[root@yuanxiaolong redis]# docker logs b8 REDIS_MASTER_PORT_6379_TCP_ADDR -> 172.17.0.47 REDIS_MASTER_PORT_6379_TCP_PORT -> 6379 [1] 28 Oct 16:29:38.442# You requested maxclients of 10000 requiring at least 10032 max file descriptors. [1] 28 Oct 16:29:38.443# Redis can't set maximum open files to 10032 because of OS error: Operation not permitted. [1] 28 Oct 16:29:38.443# Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.17 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 1 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-'
[1] 28 Oct 16:29:38.447# Server started, Redis version 2.8.17 [1] 28 Oct 16:29:38.447# WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. [1] 28 Oct 16:29:38.447 * The server is now ready to accept connections on port 6379 [1] 28 Oct 16:29:38.447 * Connecting to MASTER 172.17.0.47:6379 [1] 28 Oct 16:29:38.447 * MASTER <-> SLAVE sync started [1] 28 Oct 16:29:38.448 * Non blocking connect for SYNC fired the event. [1] 28 Oct 16:29:38.448 * Master replied to PING, replication can continue... [1] 28 Oct 16:29:38.449 * Partial resynchronization not possible (no cached master) [1] 28 Oct 16:29:38.450 * Full resync from master: 86c69ea08b60d1157f2997926143a1971455295f:1 [1] 28 Oct 16:29:38.556 * MASTER <-> SLAVE sync: receiving 33 bytes from master [1] 28 Oct 16:29:38.556 * MASTER <-> SLAVE sync: Flushing old data [1] 28 Oct 16:29:38.556 * MASTER <-> SLAVE sync: Loading DB in memory [1] 28 Oct 16:29:38.556 * MASTER <-> SLAVE sync: Finished with success