Alibabacloud.com offers a wide variety of articles about how to build docker image, easily find your how to build docker image information here online.
/timezone yum-y install kde-l10n- Chinese localedef-c-F UTF-8-i zh_cn zh_cn.utf8 mkdir-p/usr/javacopy jre1.8.0_171/usr/j Ava/jre1.8.0_171env LANG ZH_CN. Utf-8env java_home/usr/java/jre1.8.0_171env PATH $JAVA _home/bin: $PATH * Create a mirrored springcloudenv and upload to registry to make sure Docker Registry has started Docker Build-t springcloudenv. $
installing the Linux virtual system, you can see in the VMware Workstation Network editor that the virtual machine is assigned a subnet of 192.168.92.0/[email protected]. In the virtual machine terminal execution Ifconfig can see the Linux automatically get to the IP for 192.168.92.129 Edit/etc/network/interfaces file, configure the static IP address:Execute the command to make the network configuration effective:sudo/etc/init.d/networking Restart #有时候该命令没什么效果, restart it.use Linux remote mana
command as a script and use Docker Inspect Look closely at the container information and follow the ports and file directories exposed by the image. If the discovery does not reach the requirements, useDocker rm-r Modify the run script to run again after deleting the container until you are satisfied. here is my Run command:Docker run--name mdb1 \- P 13306:3306 \-v/home/wonders/docker_mdb1_data:/var/lib/m
/CA.CRT/ETC/DOCKER/CERTS.D/HARBOR.TEST.COM/CA.CRTUser Login [local need to do hosts harbor.test.com domain name redirect to Harbor server IP]Docker login-u admin-p Harbor12345 harbor.test.comTip "Login succeeded" is successfulDocker Download Redis Image:Docker Pull RedisRenaming a mirror using Docker tagUpload image to
.
42.16.doc ker build-t mac-redis. I gave it the name mac-redis
5) after the image is created, first test whether it can be used. docker run-d -- name mac-redis. At this time, the mac-redis container has been running in the background. We use redis-cli to test the redis service, docker run-it -- link mac-redis: redis -
Build a kafka cluster environment in a docker container
Kafka cluster management and status saving are implemented through zookeeper. Therefore, you must first set up a zookeeper cluster.
Zookeeper cluster Construction
I. software environment:
The zookeeper cluster requires more than half of the nodes to survive for external services. Therefore, the number of servers should be 2 * N + 1. Here, three nodes
command:Docker build-t= "Crxy/centos-ssh-root-jdk".
Query builds a successful image
5: Build a mirror with Hadoop based on this JDK imageNote: Hadoop is using the 2.4.1 version.Mkdir Centos-ssh-root-jdk-hadoopCd Centos-ssh-root-jdk-hadoopCp.. /hadoop-2.4.1.tar.gz.Vi Dockerfile
From Crxy/centos-ssh-root-jdk
ADD hadoop-2.4.1.tar.gz/usr/local
RUN mv/usr/local/hadoo
-keygen-q-N ""-T rsa-f/etc/ssh/ssh_host_rsh_key R UN Sed-ri ' s/session required pam_loginuid.so/#session required pam_loginuid.so/g '/etc/pam.d/sshd RUN mkdi R-p/root/.ssh chown root.root/root chmod 700/root/.ssh #上面几行都是配置ssh登录目录和登录验证的, while SSH is installed in base imag E centos7-base (-i openssh-server-i openssh-client) expose #开端口 RUN echo ' Root:redhat ' | CHPASSWD #重置root密码为redhat RUN yum Install tar gzip gcc vim wget-y ENV LANG en_US. UTF-8 ENV lc_all en_US. UTF-8 cmd/usr/sbin/sshd-d #
Allow GitHub to bind to the Docker Hub Docker hub->create->create automated build for the first time this step requires GitHub authorization. will automatically jump to GitHub consent authorization.
Create a Docker build project on the GitHub to implement dockerfile inside.
Overview
We talked about some basic concepts and operations of Docker, today we use a simple Java Web example to describe the application of Docker in daily work, this article mainly discusses the following parts: Creating JDK mirrors, creating resin mirrors, launching Web projects. Because the content in this article is based on Dockerfile to create, for readers who are not very familiar with Dockerfile c
managed primarily around a mirrored warehouse (registry). During the lifecycle of an app, whether a developer or CI system publishes an image, or if a tester or an OPS person downloads the image, it is done through a mirrored warehouse. A mirrored warehouse can use a public SaaS service, such as a Docker Hub. The advantage of public service is that it can be use
Dockerhub's php official image is as follows: hub.doc ker.com _ php instructions: as shown in the red box, it probably means that I can create a new Docerfile in the php code directory, then pack the code and the downloaded php image together to build a new image...
Docker h
, and then loading your own apps or software into the system, and then you don't have to reinstall the system on another machine, just clone the virtual machine to another machine.There are two ways to create a mirror, one is to use the Docker commit command to create a new image based on the image in the public repository, which is not suitable for the
, in fact, Cadvisor also has a basic graphical display function, we mainly use it to do data collection.
3.4 Creating a Granafa container
To run the Granafa container:[[emailprotected] ~]# docker run -d --name grafana --net monitor -p 3000:3000 grafana/grafana
To view the results of a run:[[emailprotected] ~]# docker ps -l
CONTAINER ID IMAGE
A container is an instance of mirroring, a prelude mirror, and then a container, so the container can have more than one.Although DockerHub provides a large number of mirrors, not every application can find a corresponding image to use in DockerHub due to the diversity of the enterprise environment. That requires the enterprise operators to master the skills of making Docker images. Before you start packing
://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm3. Install KERNEL-LT (long term support) versionYum--enablerepo=elrepo-kernel Install Kernel-lt-y4. Edit the grub.conf file and modify the Grub boot orderVim/etc/grub.confAdjust the value of default to the order of the new kernel, such as the newly installed kernel in this upgrade casePosition is 0, so change default to 0, save exit5. Check the kernel after rebooting the systemTwo: Installing Docker1 RPM-IVH http://dl.Fedoraproject.org/pu
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.