teach you step-by-step to build a Docker-based MongoDB replication cluster environment
1. Installing Docker
2. Create a MongoDB image
3. Building a MongoDB cluster
This article ——-chain--Connecthttp://blog.csdn.net/pddddd/article/details/46893593
/opt/keyfile/mongodb-keyfile, which is correct. This is the address of the key file inside Docker, and we use the-V option to map the key file to the path inside the container (that is:/opt/keyfile/mongodb-keyfile).--add-host adds this information to the Docker container's/etc/hosts file, so we can use the domain name
Tags: latest src dock different error compose scheme wrong PNGREDIS+MONGODB Two db is used in demo environment, so you can use Docker Redids and MongoDB image directly, and use Docker-compose for federated deployment. The following versions are used: Docker: Using Yum-y
Turn on the CPU virtualization feature (self-Baidu) before installing the VM so this skips. Specific view can open Task Manager, performance->CPU see if there is virtualization: Enabled typeface
Download Docker Toolbox http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/
Docker has CE and EE version,
Install docker and ubuntu
Docker
Environment:
Centos 6.5 64-bit
If the system is installed by default, the centos kernel is
[Root @ localhost ~] # Uname-Linux localhost. localdomain 2.6.32-431. el6.x86 _ 64
Docker supports 64-bit kernel for versions 3. xx and later.
1. First, upgrade your own kernel level 2.6-"3.xx
Run the MongoDB microservice on Docker and KubernetesGuideDocker is an open-source application container engine that allows developers to package their applications and dependencies to a portable container and then publish them to any popular Linux machine, you can also achieve virtualization. Containers fully use the sandbox mechanism and do not have any interfaces between them.
This article describes how
This article introduces the use of Docker and kubernetes to build a set of MONGODB services with redundant backup sets, from the container to the CI and CD-initiated changes, discussed the container technology to MONGODB challenges and opportunities, and then how to deploy a stable set of MONGODB services , very dry.In
Well, on the Windows costs a little bit effort to run Docker.1. Need to enable Virtulization:OH hp Windows machine, your need to
Turn Off You laptop
Start it and click ' Esc ' repeatly
Until If jumps a menu, you click F10 to enter ' BIOS setting '
Then find ' Virtualization Technoloy (VTx) ' Select it and save exists.
Computer would restart, finally go to the ' Task Manager ' to check whether you have enabled it or not.2. The
Log in as root, runVi/etc/yum.repos.d/public-yum-ol6.repo, add the following paragraphRun Yum Install DockerIn the run process because the network is slow, may appear the exit situation, again runs again, if encounters the Yum promptAnother app is currently holding the Yum lock;waiting for it to exitIt may be that the system is automatically upgraded and Yum is in a locked state.You can disable the Yum process by forcing:#rm-F/var/run/yum.pidRun servi
Basic installation steps Ubuntu Docker installationDocker supports the following Ubuntu versions:
Ubuntu precise 12.04 (LTS)
Ubuntu trusty 14.04 (LTS)
Ubuntu Wily 15.10
Other updated versions ...
Pre-conditionsDocker requires an Ubuntu system with a kernel version higher than 3.10 to check the prerequisites on this page to verify that your Ubuntu version supports Docker.View your current kernel version with the
Install Docker in CentOS 7Docker Introduction
Docker is an open-source application container engine that allows developers to package their applications and dependencies to a portable container and then publish them to any popular Linux machine, you can also achieve virtualization. Containers fully use the sandbox mechanism and do not have any interfaces betwee
install MySQL on Docker:Https://github.com/htmlgraphic/Docker/tree/master/Docker/MySQLHttps://github.com/tutumcloud/tutum-docker-mysqlHttp://www.nkode.io/2014/09/12/easymysql.htmlHttps://github.com/sameersbn/docker-mysqlhttp://txt.fliglio.com/2013/11/creating-a-mysql-
Tags: remember password possible server changeInstalling MongoDB in DockerMongoDB image in use: https://registry.hub.docker.com/u/tutum/mongodb/Start a container with this image (note that MongoDB is standalone mode at this point):Docker run-d--name=mongodb-p 27017:27017-p 2
/or its affiliates. All rights reserved. Oracle isA registered trademark of Oracle Corporation and/or Itsaffiliates. Other names trademarks of their respectiveowners. Type'Help ;'Or'\h' forHelp. Type'\c'To clear the current input statement.mysql>After entering, authorize the user to use the remote connectionGRANT all privileges on * * to'Root'@'localhost'Identified by'[email protected]'; GRANT all Privileges on*. * To'Root'@'%'Identified by'[email protected]'; GRANT all Privileges on*. * To'Roo
MongoDB Study Notes (1) -- install MongoDB in Windows and take mongodb Study Notes
First, download the windows Installation Package for mongodb from the official website, select a 32-bit or 64-bit version based on your system type, and then follow the prompts to complete the
"Google" + "deep learning", two tags let the December 2015 Google open-source deep learning tool TensorFlow after its release quickly became the world's hottest open source project, April 2016, open source TensorFlow support distributed features, The application to the production environment is further.The TensorFlow API supports Python 2.7 and Python 3.3+, with a total of 4 installation options.
Pip Install
Virtualenv
Tags: dockerfile1. Create a new Dockerfile fileDockerfile
12345678910111213141516
# VERSION 0.0.1FROM ubuntu:latestMAINTAINER lanhong Turnbull "[emailprotected]"# Add 10gen official apt source to the sources listRUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list# Hack for initctl not being available in UbuntuRUN dpkg-divert --local --re
According to the official website method, install Docker Https://hub.docker.com/_/mongo/docker pull MONGO Docker run--name some-mongo-p 27,017:27,017- D MONGO--auth//Here--name put in front and map port Docker exec-it container Id/bin/bash//Enter container MONGO use admin db
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.