路漫漫其修远兮
吾将上下而求索

备注

https://yeasy.gitbooks.io/docker_practice/content/install/centos.html

http://www.cnblogs.com/chenug/p/6916639.html

https://yeasy.gitbooks.io/docker_practice/content/container/daemon.html

http://dockone.io/article/783

docker exec  -it  f1085a6e368f   bash

docker ps -l

docker启动不起来,日志显示内核太低,可以使用调试模式:docker -d  并将其运行在后台,当做正常的进程启动,

桥信息都是临时设置的,重启机器后需要重新设置桥信息https://zhidao.baidu.com/question/1046233341920860299.html

       run="docker run -d --net=none --privileged=true "+\
             "-v /data/disk3:/data/disk3 "+\
             "-v /data/disk4:/data/disk4 "+\
             "-v /etc/localtime:/etc/localtime "+\
             "-v /home:/home "+\
             "-v /opt:/opt "+\
             "-v /etc/hadoop/conf:/etc/hadoop/conf "+\
             "-v /etc/hbase/conf:/etc/hbase/conf "+\
             "-v /etc/hive/conf:/etc/hive/conf "+\
             "-v /etc/zookeeper/conf:/etc/zookeeper/conf "+\
             "-v /etc/spark/conf:/etc/spark/conf "+\
             "-v /hadoop:/hadoop "+\
             "-v /hadoop/hdfs/namenode:/hadoop/hdfs/namenode "+\
             "-v /hadoop/yarn/logs:/hadoop/yarn/logs "+\
             "-v /hadoop/yarn/local:/hadoop/yarn/local "+\
             "-v /var/log:/var/log "+\
             "-v /var/log/hadoop-hdfs:/var/log/hadoop-hdfs "+\
             "-v /var/log/hadoop-mapreduce:/var/log/hadoop-mapreduce "+\
             "-v /var/log/hadoop-yarn:/var/log/hadoop-yarn "+\
             "-v /var/log/hbase:/var/log/hbase "+\
             "-v /var/log/hive:/var/log/hive "+\
             "-v /var/log/zookeeper:/var/log/zookeeper "+\
             "-v /var/log/spark:/var/log/spark "+\
             "-h %s"%hostname +\
             " c38fd74a70b0 /bin/sh -c \""
        run+="/usr/sbin/sshd -D\""

未经允许不得转载:江哥架构师笔记 » 备注

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址