Due to work needs, to connect container remotely, the local machine is Windows, the following is the resolution steps:
1. Environment
Local: Windows
↓
Docker version 1.12
↓
Remote: Container in Docker (Ubuntu)
2. Container Installing the SSH service
First enter the
static file under the/var/www/html/directory(5). Modifying the Apache configuration fileModify the Default Web site profile path to/var/www/html by default without modifying it[Email protected] ~]# vim/etc/httpd/conf/httpd.conf(6). Run Apache[[email protected] ~]#/etc/init.d/httpd start(7). Verifying website AccessUse: Docker PS (view mapped ports)[[email protected] ~]#
working properly:
sudo docker status
The Kali Linux development team has uploaded the Kali linux docker image and only needs to enter the following command to download the image.
docker pull kalilinux/kali-linux-docker
Pull Kali Linux DockerOnce the download is complete, run the following
using pipework to configure the Docker container to the local network environment
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
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
Author: Liu Xuhui Raymond Reprint Please specify the source
Email:colorant at 163.com
blog:http://blog.csdn.net/colorant/
What is it
Simply put, Docker is a lightweight VM solution built on top of LXC, based on process containers (Processcontainer)
By analogy with the transport of goods in the real world, in order to solve the problem of transporting goods of various types and sizes in various transport vehicles, we invented the
incrementally, so that they can see these historical increments. Let's look at the backup effect with save. Is 1.1G, which contains those records. When we used the export test just now, we would find that the file was only about 300M. root@dev-ops:~# Docker Save Rastasheep/ubuntu-sshd >ubuntu_sshd.tarroot@dev-ops:~#root@dev-ops:~#root@dev-ops:~# Du-sh Ubuntu_sshd.tar1.1G Ubuntu_sshd.tarroot@dev-ops:~# I estimate if there are distributed file sy
This series of Docker learning is CENTOS7 under the study.
1. Container Host/Host Access container
Start a mirror that has been configured for JDK, Tomcat, named Tomcat01.
Use Route-n to view the route of the host, ifconfig to view the host's IP.
DOCKER0 network card is docker
."Echo "If COMMAND is not specified, runs an interactive shell in CONTAINER ."ElsePID =$ (docker inspect -- format "{. State. Pid}" "$1 ")If [-z "$ PID"]; thenExit 1FiShiftOPTS = "-- target $ PID -- mount -- uts -- ipc -- net -- pid --"If [-z "$1"]; then# No command given.# Use su to clear all host environment variables tables T for TERM,# In
Backup, recovery, and migration of containers in Docker1. Backup containerFirst, to back up the containers in Docker, we would like to look at the list of containers we want to back up. To achieve this, we need to run the Docker PS command in the Linux machine where we run the Docker engine and have created the container
Phenomenon
Start the Docker containerDocker Run–name [Container_name] [container_id]View Container Run statusDocker Ps-aFind out Why the Mydocker container has just started
The main thread of the Docker container (the command ex
1. Start a Docker container# docker Run-t -I Ubuntu/ruby:v1/bin/bash2, then in the container, install Openssh-server openssh-client# apt-get Install openssh-server openssh-client3. After completion, change the root password# passwd4. Exit the
Tags: docker art default exclude row var statement show restart1. Download MySQL image# docker Pull MySQL2. Start the MySQL container# docker run-itd-v/data:/var/lib/mysql-p 33060:3306--name mysqldb MySQL BashWarning:ipv4 forwarding is disabled. Networking won't work.25d047a
Docker is based on the Linux kernel, in the current mainstream Linux system, have already native support Docker and the experience is also the best, of course, in the Windows platform and MacOS system also support Docker, You just need to use virtualization tools like Boot2docker to provide Linux support.
The following focuses on the two types of creating
to add the following lines in the/etc/profileMaven_home=/usr/local/maven3Export Maven_homeExport Path=${path}:${maven_home}/binRemember to execute source/etc/profile to make the environment variable effective.Then, enter Mvn-version to return the version information to install the normal################# #到这里环境就配置完成了, the following is the real deployment of the part, because the process is tortuous, may be more detailed, pro-Test available ##############Sta
first, the new and start the containerUsage:docker Run [OPTIONS] IMAGE [COMMAND] [ARG ...]650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/0D/wKioL1dp7qmCLz9VAAKYkvj7mGk419.jpg "title=" Qq20160622094845.jpg "alt=" Wkiol1dp7qmclz9vaakykvj7mgk419.jpg "/>The following command launches a bash terminal, which allows the user to interact with the meaning of some of these options, please refer to the help above:Docker Run-ti Jdeathe/centos-ssh/
installed on the server, and now you want to test each new version and install it in a Docker container, independent of each other, without affecting each other.Here's a look at how Mysql is installed and used in Docker, which, for ease of understanding, is analogous to the concept of virtual machines.Note: The whole idea is introduced, not the detailed installa
Write in front:After continuing with Docker's learning and learning the basic common commands of Docker, I installed jdk,tomcat two basic Java Web Tools on Docker, where the operating procedures were recorded.Software Preparation:1, jdk-7u79-linux-x64.tar.gz2, apache-tomcat-8.0.36.tar.gzDownload CentOS Image: ( the process of downloading CentOS is very long )1 # Start
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.