Installation Environment
Operating system centos7.3
Installing Docker, installation and configuration see Docker Docker Introduction and installation Configuration
Install Jenkins Download JenkinsCommand:sudo docker pull jenkinsReady to create before starti
(1) Pull a new CentOS image for Docker pulls centos:7.2
(2) Running a container, ready to install the necessary environment
Docker run--privileged--dns 8.8.8.8--dns 8.8.4.4-h controler--name slurm_control-i-t-v/container_data/:/data C Entos:centos7/bin/bash
(3) Install the SSH environment inside the container
Yum Insta
port 80 on the respective container.
User namespaces
Starting with Linux 2.6.23 completed on Linux 3.8)
User and group ID spaces
The user and group IDs of the processes in user namespace can be different from the host, and each container can have a different user and group ID, and a non-privileged user on a host can be a privileged user in the user namespace ;
The conc
Tags: pre copy interface customization Bubuko docke RET users HomeMany tutorials on the web are about the Docker installation on Linux Jenkins, but I use a Mac, so refer to previous articles written by predecessors to record their own installation process.1. New local mount file address, Mac I used
mkdir /Users/vincentwen/docker/
nvidia-dockeris a can be GPU used docker , nvidia-docker is docker done in a layer of encapsulation, through nvidia-docker-plugin , and then call to docker on, its final implementation or on docker the start command to carry some
Install, run, and remove docker applications to run and save docker containers
1. Run and save the nginx Server Based on the Ubuntu docker container. Install the nginx daemon to the Ubuntu startup container:
# Docker run Ubuntu ba
Three major docker components: container and docker1. containers are another core concept of Docker.
Simply put, containers are one or more applications that run independently and Their runtime environments. The virtual machine can be understood as a simulation.A complete set of operating systems (including the running environment and other system environments) a
write in front
Previously built Spring-cloud time to see someone else code inside always have Dockerfile, and then understand the concept of Docker container, play for two weeks to play, put down, inadvertently saw an article on the Internet Docker continuous deployment, think of themselves also set up a play. Process
The flow of this article on the internet inv
start container docker run-ti Ubuntu/bin/bash
Docker run = First Docker Create and then Docker start
-T means to have Docker assign a pseudo terminal and bind to the container's standard input
When the-T is used, the command
-end interface but also the execution of back-end upgrades. And in order to ensure the completeness of the test dimension and facilitate analysis, the upgrade test framework must ensure the following:
Automatic upgrade Test
Simulate the behavior of a user
Stability Guarantee
Detailed Test Report
View the upgrade process at any time
Considering these requirements, we decided to build an automated upgrade test environment with a hybrid combination of Docker
Docker Quick Start series (2): container concepts and related operations, docker Quick StartWhat is container
To put it simply, an image requires a carrier, which is a container. As mentioned in the previous article, an additional writable file layer will be started after th
Root (id = 0) is the default user of the container. The creator of Docker image can add new user.
For example, the dockerfile of Jenkins image is this:
From JAVA:8-JDK RUN apt-get update apt-get install-y wget git curl zip rm-rf/var/lib/apt/lists/*
Env Jenkins_home/var/jenkins_home Env jenkins_slave_agent_port 50000 # Jenki
-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com in A 54.164.250.255Us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com in A 54.152.78.181Us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com in A 52.0.10.162
I picked a random IP to add to the hosts.Echo ' 54.208.179.150 Registry-1.docker.io ' >>/etc/hosts
And then execute it again.Docker Pull Jenkinsci/jenkins
If the download succeeds, we will verify that:Docker imag
.
Network namespaces
Started with Linux 2.6.24 completed on Linux 2.6.29
Network-related system resources
Each container has its own network device, IP address, IP routing table,/proc/net directory, port number, and so on. This also allows the same application in multiple containers on a host to be bound to port 80 on the respective container.
User namespaces
one directly in:
Docker images view downloaded Docker mirrors:
Docker Run-tid--name ubuntu-p 23:22 ubuntu: Name the new Docker as Ubuntu and map to Port 23
NETSTAT-APNL | grep 23 See if Port 23 is open
You can see that port 23 is open.
Docker Exec-ti Ubuntu/bin/bash
This article focuses on the Docker image, container, warehouse basic concepts of knowledge.
Docker concept
Docker is an open source application container engine that allows developers to package their apps and dependencies into a portable
use Docker-enter to enter Docker containerDocker containers do not have sshd service, but also want to enter Docker how to do, we can use the nsenter into the Docker container namespace namespace to virtual login Docker container.
--------------------------------------------------------------------------------------
Blog:http://blog.csdn.net/chinagissoft
QQ Group: 16403743
Purpose: Focus on the "gis+" cutting-edge technology research and exchange, the cloud computing technology, large data technology, container technology, IoT and GIS in-depth integration, explore the "gis+" technology and industry solutions
Reprint Note: The article is allowed to reprint, but must be linked to
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.