-u specify a user
The-u option for Docker run can specify the user name of the container, or the value of the option can be the username or UID.In the case of user name, this user must exist in the container. If this is the UID, there is no such restriction.
We're still using Jenkins image for example. If I specify-u ubuntu while running, the
${refs} \
git checkout Fetch_head "
RUN chown-r myname:mygroup/home/myname
2) Second, start the container based on the container image file of the build
Docker run-it--name Container_name image_name:version
3) When you need to update a directory or file in a running container
Docker container, in the development of the program → Test → release, the whole process can ensure the consistency of the environment, and greatly reduce the workload and time. This is the main reason why Docker is very popular.
Speaking of which, you may not be able to wait, let's use the Docker.
3. Use
SOFTWARE environment
1. Create a server
3 Linux servers are created using the Docker container, and the IP address isnodea:172.17.0.13
nodeb:172.17.0.14
nodec:172.17.0.15
2. Kafka's Docker Mirrors are also produced using Dockerfiles, which reads as follows:
###################################################################
From Docker.zifang.com/centos7-base
Ma
As the current most popular application, Docker does exist in its unique, whether the program ape or Yun-dimensional should have heard of Docker's name, Docker has gone through a lot of pits, the latest version is the v1.11.0 version, it should be said to be fully capable of carrying the development and operation of monitoring, This tool helps us to efficiently package, publish, and run
://127.17.0.1You can view it directly.You can also use the IP address of this container in your browser.Finally, it is important to note that if you use a command to stop a container:[Plain] View plain copyDocker Stop webThen open the container:[Plain] View plain copyDocker Start-i WebUse this time:[Plain] View plain c
system, so any commands we type would run I Nside of that system. Try typing that same command we just ran with from exec inside the container.Now to check the size of each folder, we can just do:du -mh$ docker Container exec-it elegant_noether/bin/Bash[email protected]:/usr/local/apache2#du-mh16k./error/include220k./error44k./Build8.0K./htdocs892k./include72k./conf/extra72k./conf/original/extra96k./conf/o
Objective
Docker is a very interesting project. It claims to be able to ease the difficulty of deploying servers, and of course I believe there is hype in it. But after the actual use, I think the performance of Docker is commendable. This article mainly summarizes the Docker clear container mirror common commands, le
Docker Container Executor (DCE) is an important feature of Hadoop 2.6.0: Big Data's giant Hadoop can finally take advantage of the power of the beloved Docker in the current virtualization/Cloud world.There are a lot of articles about Docker concept, so this article is not going to go into it, just refer directly to th
As soon as Docker came out, it was not only financed, but also supported by giants like Google. CoreOS, who had been busy providing technical support for Docker, seemed ready to dip into Docker's light, and now it seems to have another plan: according to GigaOM.com, yesterday CoreOS released a container engine competitive prototype rocket on GitHub, Designed to g
Demand
In the process of using Docker, we sometimes have the need to configure the Docker container to the same network segment as the host. To achieve this demand, we simply will Docker container and host network card Bridge, and then to
224.0.0.1multicast address. If your host turns on IRDP (Internet routing discovery, using multicast), then you should have such a route in your host routing table.
169.254.x.xUsing the DHCP feature to automatically obtain the IP host, the DHCP server fails, or the response time is too long to exceed a system-specified time, the system assigns you an IP that represents the network is not functioning properly.
10.xxx, 172.16.x.x~172.31.x.x, 192.168.x.xPrivate addresses, which are heav
Zabbix monitoring Docker Prompt permissions not enough issuesBackgroundWith the increasing use of Docker in the project, Docker's operational status becomes a concern, using Zabbix to monitor the Docker container, not only the operation of the container itself, but also the
For those who are interested in this offline event, please click here to sign up for a free ticket.In March this year, Docker had just finished its 5 birthday, and for five years, Docker had gradually matured in technology and practice, and embraced kubernetes at the end of last year.May 19, NetEase Cloud will co-host Docker Meetup, invite industry
2015-04-09 Zhang Xiaodong Oriental Cloud Insight650) this.width=650; "class=" Rich_media_thumb "id=" Js_cover "src=" http://mmbiz.qpic.cn/mmbiz/ eazbllcahycxsccqu52rltcicnrpswi87oqelgrulgfxjhuwdriagym4w5fbk0sfhbwwiaibtucih2icsbqanuofvrw/640?tp=webp Wxfrom=5 "style=" margin:0px 0px 6px;padding:0px;border:0px;width:668px;height:auto; "alt=" 640?tp=webpwxfrom=5 "/>Click on the link text above to quickly follow the "East Cloud Insights" public numberWindows Server Containers is able to run applicati
2015-04-09Zhang XiaodongOriental Cloud InsightsClick on the link text above to quickly follow the "East Cloud Insights" public numberWindows Server Containers is able to run applications specifically built for Windows server and. NetMicrosoft has developed a container technology that can be run on the Windows Server operating system and is expected to be available in Microsoft Windows and. NET system to replicate the success of
Objective
It is well known that bridge mode is docker default network setting, which assigns network Namespace to each container, sets IP, and connects the Docker container on one host to a virtual network bridge. Let's look at the way Docker specifies the
Run ASP. NET Core Web API application in docker (with AWS Windows Server 2016 widt Container case), dockerawsEnvironment preparation
1. Amazon EC2 Windows Server 2016 with Container
2. Visual Studio 2015 Enterprise (Update required for Profresianal)
3.. NET Core 1.0.0-VS 2015 Tooling Preview 2. Click here to install
4. Microsoft. NET Core SDK, which can be downlo
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.