Install Docker CE on Linux using the installation method from the package, linuxdocker
Install Docker CE on Linux using the installation method from the package
1. view the Linux system information nuame-
My products are Debian and amd64.
2. view the Linux system release version name lsb_release-cs
Mine is stretch.
3
I have been engaged in docker recently, and it is also very troublesome to use exec to enter the docker container. Today I found on the Internet that nsenter is very convenient to enter the container, freeing me from the trouble of always using commands to enter the docker container, next let's take a look at the i
Connection ID is 3Server version:5.7.21 MySQL Community Server (GPL)Copyright (c), 2018, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of the Oracle Corporation and/or itsAffiliates. Other names trademarks of their respectiveOwners.Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.mysql> show databases;+--------------------+| Database |+--------------------+| Information_schema || Chavin || MySQL || Performance_schema || S
Mdb1/bin/bashAfter entering the main database container,Vi/etc/mysql/my.cnfRemove the comments from the "Server-id = 1" line, save, exit the container, andDocker Restart MDB1Similarly, changing the MY.CNF from the database to "Server-id = 2" needs to be more than the main Server-idLarge numbers, MDB2 also need to be restarted.3.4Using a client connection on the primary database, here I am using MySQL Workbench, from the database becauseSecurity consi
1. Installing DockerThe system environment I am currently using is CentOS7 , and the command to install Docker is the yum install docker*. As for other systems, you can go to Baidu to find its corresponding installation method.2. Configure the address of the Docker image warehouseFor now, direct access to the Docker's
-y may be used for the next instruction.
The--no-cache flag can be used to force cancellation of cache usage. The Env ENV directive can be used to set environment variables for the Docker container environment variable env settings, which can be viewed using the Docker inspect command.
You can also use Docker run--env
0Fi/usr/local/mongodb/bin/mongod--smallfiles--nojournal pass=${mongodb_pass:-$ (pwgen-s 12 1)}_word=$ ([${mongodb_pass}] echo "Preset" | | echo "random")Ret=1while [[Ret-ne 0]]; Doecho "= Waiting for confirmation of MongoDB service startup"Sleep 5MONGO admin--eval "Help" >/dev/null 2>1Ret=$?Done#通过docker logs + ID to see the following outputecho "= Creating an Admin user with a ${_word} password in MongoDB"MONGO admin--eval "Db.adduser ({User: ' adm
1. When using MAVEN, the project first adds the auto-install MAVEN to the global Tool configuration and then adds the Maven top-level MAVEN targets in the project's build The Maven ID you just added is selected in version, otherwise the following error is reported:Fatal:command Execution Failedjava.io.IOException:Cannot Run program ' MVN ' (in directory/var/jenkins_home/workspace/ Jettydocker "): error=2, No such file or Directoryat Java.lang.ProcessB
The Docker hub works with Docker and its components. The Docker hub will help you collaborate with your colleagues and get the most functional docker. To do this, the services it provides are:
Docker Mirror Host
User authentication
Automatic mirroring of Build an
Xe
System
Oracle
Operating system:
Root
Admin
So that we can use this container for development, such as a project that requires 3 Oracle servers:Docker run-d-P 101:22-p 1521:1521-p 8080:8080--name oracle1 alexeiled/docker-oracle-xe-11gDocker run-d-P 102:22-p 1522:1521-p 8081:8080--name oracle2 alexeiled/
Foreword because most of the image download websites are abroad, Chinese users often encounter slow download speeds when downloading images; in addition, when Docker is applied to the production environment, it also faces the security issue of the downloaded Docker image. Because some private data is built in the production environment
Preface
Because most of the image download websites are abroad, Chinese
run.sh script. The advantage of this is that you can use WebLogic concepts such as clustering, synchronization, and so on. Deploy a clustered application that only needs to be installed once to the cluster.? ? The disadvantages are:? ? The Docker configuration is complex.?? There is no way to automatically expand the compute capacity of the cluster, if you want to add nodes, you need to create a node on administrator, then configure the new container
container to share the IP and port of the container. In addition to the network of two containers shared, other such as file system, process, etc. or isolated.4:none mode,--net=none.In this mode, Dokcer does not make any network configuration for the container. We need to add the network card for the container, configure the IP.Therefore, if you want to use pipework to configure the IP address of the Docker container, you must be in the None mode.Pip
The connection between Docker containers can be a lot of convenience, and the following records how the Redis container connected to it is connected through environment variables within its own container.Start with a Redis docker container named Redis, and then start your own Docker container, using "--link Redis:redis
IntroducedDocker is an open source software project that allows applications to automate their work under the software container, providing an additional layer of software abstraction on the Linux operating system and an automated management mechanism for operating system-level virtualization [1]. Docker uses resource-splitting mechanisms in the Linux core, such as Cgroups, and the Linux core namespace (name space) to create a separate software contai
using Supermin to make CentOS Docker mirrors
Install the supermin on the CentOS7
$ sudo yum install-y supermin*
Create MIRROR (The following command needs to run with root)
# supermin5-v--prepare bash coreutils-o supermin.d
# supermin5-v--build--format chroot supermin.d-o
# echo 7 > Appliance.d/etc/yum/vars/releasever
# tar--numeric-owner-cpf centos-7.tar-c appliance.d.
# Cat Centos-7.tar |
/ Libstdc++.so.6 "for
file in $bak _list
does
cp-r $file/data/gcc-bak/
Done
Then, create the following file in the/etc/ld.so.conf.d/directory
Cat gmp-mpfr-mpc.conf
/usr/local/mpfr-2.4.2/lib/
/usr/local/mpc-0.8.1/lib/
/usr/local/gmp-4.3.2/lib /
Then extract the/tmp/lib.tar.gz into the/usr/local directory and perform the Ldconfig update cache.Try yum to install rpm
Yum Install gcc-4.8.4-1.x86_64.rpm
Find that too much reliance is missing
Finally, the dependency forcing update is ignored
Using Dockerfile to create CentOS Docker mirrors with Apache services
List of files prepared on the host:
Dockerfile
#启动ssh和apache服务的角本
run.sh
The above files are placed in the/root/apache_centos directory
Mkdir-p/root/apache_centos
Cd/root/apache_centos
Base mirroring: Mirroring of open SSH services based on mirrored CentOS
[Root@localhost apache_centos]#
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.