1. Docker search and download MySQL imageDocker search MySQL;Docker Pull mysql:5.7 (5.7: Version number);2. Create a MySQL image and runDocker run --name you-mysql-p 3308:3306-e mysql_root_password=123456-d MySQLTerminal authorization to enter MySQL (otherwise remote access is not possible)[email protected] ~]# Docker exec-it you-mysql mysql-uroot-p123456 grant
Tags: cal got lib images tab LAN a-name ATISystem RequirementsDocker for Mac requires a minimum system of MacOS 10.10.3 Yosemite, or Mac models after 2010, to be exact, with Intel MMU virtualization, with a minimum of 4GB memory.If the system does not meet the requirements, you can install Docker Toolbox.Installation using Homebrew installationHomebrew's Cask already supports
This is a creation in
Article, where the information may have evolved or changed.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/53816615 not allowed to reprint without the Bo master.Bo main address is: Http://blog.csdn.net/freewebsys
1, installing Jenkins
Jenkins is a powerful tool for continuous construction. It's a very handy tool.The simplest way to install it is to use the
--restart=always--name mysql5.7-p 3306:3306-e mysql_root_password=123456-d mysql:5.7Port mappingsThe ports that are used by the software running in the Docker container need to be mapped to the port on the current host for access. Docker port mappings are implemented with a-p parameter. For example, we mapped the 6379 port of the Redis container to the 6378 port on this machine:Docker run-d-P 6378:6379--nam
Tags: mysql configuration pass COM command parsing run pre etc Docker installation configurationInstall the MySQL service using the official Docker image1 Pull MySQL image, use netease acceleration addressDocker pull HUB.C. 163. Com/library/mysql:5.72 Renaming a mirror nameDocker tag HUB.C. 163. Com/library/mysql:5.7 mysql:5.73 Creating a directory for mountingsudo mkdir /my/mysql/datadir #用于挂载mysql数据文件 sud
The previous talk of using wget to download JDK installation files from Oracle uses cookie spoofing to bypass authentication to use Dockerfile to install Oracle versions of the JDK in Ubuntu.However, the path is to use Apt-get to install the Oracle JDK, and now update a dockerfile configuration that uses Apt-get to install the Oracle JDK:1#VERSION 0.0.12 #默认ubunt
Docker Centos7 installs SSH concrete steps, here record, also can help to read the article friend.
A. Download CentOS official image from Docker hub
Hr:centos7 hr$ Docker Pull Centos:7
When you are finished downloading, view the local repository: Hr:centos7 hr$ docker images the REPOSITORY TAG I
Install docker on Ubuntu.
Solution: run the uname -- m command to install Ubuntu 14.04 or later on the x86 architecture.
2. putty cannot connect to the VM...
Solution: 1. Make sure that you can ping a remote Ubuntu or virtual machine. 2. If you still cannot log on, most of the reasons are that you have not enabled the ssh-server service. The final success meth
Today, in the use of dockerfile to make Docker mirror, suddenly found that can run "run yum install-y sudo" Suddenly ran an error, the following errors:
Rpmdb Checksum is INVALID:DCDPT (pkg checksums): sudo.x86_64 0:1.8.6p3-29.el6_9-u the
command '/bin/sh-c yum L-y sudo ' returned a non-zero code:1
The underlying mirror used in my dockerfile is "gpmidi/centos-6.5". Research on a circle to find someone sa
Ubuntu 14.04 and laterThe Ubuntu 14.04 version of the official software source has its own Docker package, which can be installed directly$sudo apt-get Update$sudo Apt-get install-y Docker.io$sudo Ln-sf/usr/bin/docker.io/usr/local/bin/docker$sudo sed-i ' $scomplete-F _docker Docker '/ete/bash_completion.d/docker.ioThe
First, Docker pulls the Tomcat image, as shown in figure:
Second, install the Tomcat container, as shown:
Note:--link Connect to MySQL (otherwise the DB cannot be accessed.) Each container is independent)
Tomcat_mysql is an alias. DB configured as: tomcat_mysql:3306
Third, if the 80 port is occupied, then stop Tomcat and remove the Tomcat container, as shown in figure:
Four, replace the port of
) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/82/0F/wKiom1dJZISjP2dDAACuPXCGodk256.jpg-wh_500x0-wm_3 -wmp_4-s_3747632387.jpg "title=" qq20160528172712.jpg "alt=" Wkiom1djzisjp2ddaacupxcgodk256.jpg-wh_50 "/>Note that the container name here is: Dbtest,mysql root user password is: root1234,Port 3306 of the host child is mapped to port 3306 of the container, The warehouse name MySQL and tag (tag) only determine the image to be specified, in fact, if there is only one MySQL it is necessar
Get MirrorDocker pull MySQLTo start the container:Docker run-p 3306:3306--name pf-mysql-v/usr/pf/docker/volumn/mysql_conf/my.cnf:/etc/mysql/my.cnf-v/USR/PF /docker/volumn/logs/mysql:/logs-v/usr/pf/docker/volumn/db/mysql:/mysql_data-e mysql_root_password=123456-d 0D16D0A97DD1
-P 3,306:3,306: Map the container's 3306 port to the host's 3306 port
-V $PWD/conf
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.