123456789Ten One A - - the - - - + - + A at - - - - - in - to + -
Usage:dockerrun[OPTIONS]IMAGE[COMMAND][ARG...]-a,--attach=[]登录容器(以dockerrun-d启动的容器)-c,--cpu-shares=0设置容器CPU权重,在CPU共享场景使用--cap-add=[]添加权限,权限清单详见:http://linux.die.net/man/7/capabilities--cap-drop=[]删除权限,权限清单详见:http://linux.die.net/man/7/capabilities--cidfile=""运行容器后,在指定文件中写入容器PID值,一种典型的监控系统用法--cpuset=""设置容器可以使用哪些CPU,此参数可以用来容器独占CPU-d,--detach=false指定容器运行于前台还是后台--device=[]添加主机设备给容器,相当于设备直通--dns=[]指定容器的dns服务器--dns-search=[]指定容器的dns
. Set the docker ServiceSet docker to start automatically
systemctl enable docker
4. Configure the image repositoryFirst, put the tar packages of the two images to be used./rootDirectory.
Then manually load the image and LoadregistryAnd then upload the image to the private image repository becauseregistryThe container must be used for registration of other conta
Docker to build lamp application
LAMP refers to the Linux (operating system), Apachehttp Server, MySQL (sometimes referred to as MARIADB, database software) and PHP (sometimes referred to as Perl or Python) The first letter, generally used to build a Web server. Although these open source programs are not specifically designed to work with several other programs
Lamp Introduction
LAMP refers to the Linux (operating system), Apachehttp Server, MySQL (sometimes referred to as MARIADB, database software) and PHP (sometimes referred to as Perl or Python) The first letter, generally used to build a Web server. Although these open source programs are not specifically designed to work with several other programs, this combination has become popular because of their free and open source (most Linux distributions * *
The following warning are encountered when executing Docker run :[[email protected] volumes]# Docker run-d-P 8080:80-v/tmp/test_mount httpdunable to find image ' Httpd:latest ' Locallyt Rying to Repository docker.io/library/httpd ... sha256 : 72f2b4aa99235509146bd12054d1a93c1c869ba60212d21729118c93ca4305d3:pulling from
:
Docker build-t Zhangchao/mysql-master5.7:v1.
Be careful not to drop the last point at the end of the line.
Generate a new container based on a compiled mirror:
Docker run--name mysql-master \
p 3306:3306 \
-v/zc/mysql-master/datadir:/var/lib/mysql \
e mysql_root_ Password= ' 123456 '-D zhangchao
Build a docker java compiling environmentBuild a java compiling environment using Dockerfile
1. includes the following software packagesUbuntu jdk maven svn
2. jdk and maven must be downloaded manually.Jdk-8u51-linux-x64.gz apache-maven-3.3.3-bin.tar.gz
3. Create a Dockerfile that contains the following content
FROM export turun apt-get updateRUN apt-get-y install subversionADD jdk-8u51-linux-x64.gz/usr
LAMP refers to the Linux (operating system), Apachehttp Server, MySQL (sometimes referred to as MARIADB, database software) and PHP (sometimes referred to as Perl or Python) The first letter, generally used to build a Web server. Although these open source programs are not specifically designed to work with several other programs, this combination has become popular because of their free and open source (most Linux distributions are bundled with these
There's nothing to say about the Tomcat build in Docker, just download the official Image Docker pull Tomcat (which may be downloaded to several mirrors, that is, the tag is different, and you know why you can tell me)And then I look at the description in the https://registry.hub.docker.com/_/tomcat/Docker
Reference Link: https://github.com/ethereum/go-ethereum/wiki/Running-in-Docker
Reproduced in the original: http://dockone.io/article/1931
The etheric square Go (language) team builds a Docker mirror of a "geth" node as part of its ongoing build chain. We can use these mirrors to quickly run the etheric square node in o
In the previous chapter "Docker Kafka study, one of the trilogy: the Speed of experience Kafka" we quickly experienced the Kafka message distribution and subscription functions, but the impression of the environment is only the implementation of a few commands and scripts, this chapter we learn how to write these scripts in combat, Build local Kafka environment;
This practice will make
Docker run -- name nginx-man-It centos to create a centosYum install-y wget GCC gcc-C ++ make OpenSSL-devel Build EnvironmentWget http://nginx.org/download/nginx-1.14.0.tar.gz get nginx installation packageWget https://ftp.pcre.org/pub/pcre/pcre2-10.23.tar.gz -- no-check-CertificateObtain PCRETar zxf nginx-1.14.0.tar.gzTar zxf pcre2-10.23.tar.gz unzip two package
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
Want to build a Jenkins environment in Docker. At the beginning I wanted to pull CentOS first, and then I built the environment inside, the environment can run, but I do not know which data to mount, which is why I am not familiar with Jenkins.Colleague told me a new idea https://registry.hub.docker.com/_/jenkins/in the official website, look for the mirror, see
The last one said to install the Docker and Docker-compose, now start downloading the source code and joining the channel
Download and install the Curl tool
1, create Fabric Engineering and project directory.
Mkdir-p workCD work Then, execute the following code:
Curl-l https://raw.githubusercontent.com/voodoo12345/polaris/master/fabpre.tar.gz-o fabpre.tar.gz 2>/dev/null; TAR-XVF fabpre.tar.gz
After this
This is a creation in
Article, where the information may have evolved or changed.
1,alpine Linux is very small
First Alpine is very small, installed on the bash after the 5MB.Golang don't need any other dependencies to see if they can run on Alpine.Build a Golang environment, rather than putting the golang environment on the Alpine.
2, first build Golang environment in CentOS
Https://golang.org/doc/
Docker practice 5: Build redmine and dockerredmine
Redmine is an open-source project management system. It has the following advantages for me to choose it as my project management tool.
1. Support multi-project management
2. Flexible role management
3. Flexible issue/bug Tracking Management
4. Supports Gantt charts and calendars
5. Support for news, document and file management, email notification, and oth
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.