This is a creation in
Article, where the information may have evolved or changed.
MAC OS platform uses Python and Docker to create tests with Https Server
Flask is a Python Web Framework that I like very much, I need to test HTTPS traffic recently and need to create an HTTPS Server that uses a self-signed certificate, then use Flask This can be done in a very convenient way through the following steps.
Sel
:80 friendlyhello
View docker image ls , you can see Friendlyhello this image
Browser Access localhost:4000, you can see the app we wrote with Flask
You can use the background mode to start the app, and the command isdocker run -d -p 4000:80 friendlyhello
Background mode-enabled apps can be used docker container stop container_id to turn off
Look at the containers that
under Mac, the result is
--datadir=/usr/local/var/mysql
After confirming the above question, execute the following command:
Docker run--name my-mysql-server-p 6604:3306-d-v/usr/local/var/mysql:/var/lib/mysql mysql/mysql-server:5.7.16
Then execute "Docker ps-a" to see if the container that is known as My-mysql-server is running. If so, c
Contribute an article:Cloud hosts can select operating system images to quickly create a host, which is more convenient than a virtual machine, and we can do this locally because of the Docker thing. It relies on LXC (Linux Container) to get a configured Linux image from the network, and it is very easy to run its own applications in an isolated system. Also because its underlying core is a LXC, you need to run a small LXC in VirtualBox under
web的app的日志stop#停掉appdocker rm web9) Stop Boot2dockerstopboot2docker poweroffAddIn the Docker hub, you can see the image of a downloadable deployment already in repo. First register a user on the site and thendocker loginLanding.Passdocker search sparkYou can search for remote mirrors locally. and download them.docker pull img-nameThe Docker hub is to IMG, which is the equivalent of GitHub to project.Referen
Today in Docker installed MySQL, is its own Docker pack.
The first new dockerfile content is as follows:
From Mysql:latest
Maintainer Abel.yang
Execute build command after new dockerfile:
Building Mirrors
Docker build-t Mysql/yang.
The build results are as follows:
Enter command to view results
Docker
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/
agovc3z9spbwjhk getstartedlab_web.2 btchild/get-s Tarted:part-2 myvm2 Running Preparing about a minute agos2fuh8z5leto getstartedlab_web. 3 btchild/get-started:part-2 myvm1 Running Running about a minute agonhd3cpud5k28 getstartedlab_web.4 btchild/get-started:part-2 myvm1 Running Running seconds AGON3TC R1k8ieen getstartedlab_web.5 btchild/get-started:part-2 myvm1 Running Running Abo UT a minute ago
Http://192.168.99.100:4000/can then be accessed through the browser to see the
Docker is the latest hot technology, the technology industry is a network of red. In the nature of the technical people toss, try to change the local MySQL server to use Docker execution, this article records toss process, to make a memo.
The steps are as follows:
1: Install Docker
Find your own documents.
2: Using the official
Order
Because the cloud host will soon expire, or on the Mac on the first lap Docker environment bar.
Install Brew
CURL-LSSF Http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 1
Boot2docker Way (will be discarded)
Install Docker
sudo brew install boot2docker
boot2docker init
Start
Boot2docker up
After launching Docker today, I found that the package was wrong:
? ~ Docker Images
2014/12/11 17:11:06 Get http:///var/run/docker.sock/v1.15/images/json:dial unix/var/run/docker.sock:no such file or di Rectory
So see if boot2docker is not up:
~ boot2docker up
Waiting for VMs and Docker daemon to start ...
Run Oracle with Docker on Mac
1. You must use Boot2Docker to run Docker and install Boot2Docker on Mac.
1. Download the pkg installer https://github.com/boot2docker/osx-installer/releases/latest, and install it in double-click mode;2. initialize and run it once.Boot2docker init
3. Start. It needs to be started after ea
Failed to start boot2docker after installing Docker on Mac
After installing Docker on Mac, you must start boot2docker to load VM before using the docker command. However, an error occurs when I start boot2docker after installing boot2docker:
Waiting for VM and
After installing Docker on your Mac, you need to start Boot2docker to load the VMS before you can use the Docker command, but when I install Boot2docker, I start boot2docker an error occurs:Waiting for VM and Docker daemon to start.............................................................................oooooooooooo
is, the/users/liugx/docker/data/www on the host and the/var/www/html directory in the container is synchronousThe name of the –name container–link in connection with another containerThe following Redis and Elasticsearch are directly like creating a MySQL database ContainerDocker Pull Hub.c.163.com/library/redis:latestDocker Pull Hub.c.163.com/library/elasticsearch:latest##### #注意 ######After configuration, you need to modify the Nginx configuration
After installing Docker on Mac and Win7, we found that the original vagrant couldn't start.[Email protected] vagrant$ vagrant up/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/pre-rubygems.rb:31:warning:insecure World Writable dir/ Usr/local/tomcat/bin in PATH, mode 040777/opt/vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:78:warning:insecure World Writable Dir/usr/local/
Using Docker in Mac is actually using Boot2docker to start a Linux virtual machine "BOOT2DOCKER-VM"first through VirtualBox, so that after startup, Starting container from Docker, even if you add a port mapping, the host is inaccessible because this port mapping is the port that maps VirtualBox-initiated virtual machines to container.At this point you need to add
1, Installation: Use Homebrew installation:Install Docker2. Operation:After running, you'll see a whale icon in the top right-hand menu bar, which indicates the status of Docker.3. Configure the accelerator:DaoCloud 加速器Terminal Input command to see if the acceleration setting is successful:Info The bottom shows: Registry mirrors:http: // 3baabe93.m.daocloud.io/4. After the installation is complete, perform the following commands on the terminal to vie
Tags:. com def htm contain demo ant speed EPO restartDocker's private warehouse, like Maven's, is typically used to build a docker hub-like environment within the company, so uploading and downloading mirrors are faster, and this article demonstrates how to use Docker-machine on a Mac to build a private warehouse without SSL certificates.One, view
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.