Category: Docker Tips

Docker filled the hard drive.

$> /var/lib/docker/devicemapper/devicemapper This document has six G. Is there any way to clear it? Hard drive is not big.

Can not connect to the docker in the mysql server

1. The host can not connect to the docker in mysql The error is as follows: [Root @localhost ~] # mysql-h 127.0.0.1 -uroot-p -A Enter password: ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 If it is localhost. The error is as follows: [Root @localhost ~] # […]

Docker build generates the mirror CREATE time is incorrect

Today, with a docker build to generate a mirror, CREATE shows 8 days ago. After entering the container, with the date command to obtain the time is 8 days ago. May I ask how is this going? The host is windows10.

What is the useful docker warehouse platform?

The official image library is too slow I remember the original though slow, but can pull … now is the direct timeout. With the words of VPN, the usual time more speed, more people do not make time. Some of the other docker warehouse platforms are also used DaoCloud the acceleration, the feeling is still […]

Docker run-p xx1: xx2 designated port mapping, into the container, then start the network procedures inside?

-p behind with a direct network procedures, not flexible ah. Ps-p can open a lot of network ports at the same time?

Docker pull wrong?

Docker pull mirror the following mistakes, how to solve ah? ➜ ~ docker version Client: Version: 17.04.0-ce API version: 1.28 Go version: go1.7.5 Git commit: 4845c56 Built: Mon Apr 3 18:22:23 2017 OS/Arch: linux/arm Server: Version: 17.04.0-ce API version: 1.28 (minimum version 1.12) Go version: go1.7.5 Git commit: 4845c56 Built: Mon Apr 3 18:22:23 2017 […]

What is the role of privileged parameters in the Dmler Compose's yml file?

What is the role of the privileged parameter in the Dmler Compose's yml file? Turned the document, Baidu and Google, but did not find, trouble to explain. Why fpm and nginx need to add this parameter, and the web does not need this parameter? As shown below:

How to use the docker to build a staging test environment

Want to use the docker to build a test environment, in only one machine, a domain name case, to support different developers, the different project code deployed in this environment, and can use the domain name + port, and can be different Test the environment to access, and test, probably the following look: Do not […]

Docker-machine regenerate-certs problem

System Environment: Win10 + virtualbox5.0.24 Docker, docker-machine version JYC103@Fanne MINGW64 ~ $ docker-machine.exe -version docker-machine.exe version 0.7.0, build a650a40 JYC103@Fanne MINGW64 ~ $ docker version Client: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: Thu Jul 28 23:54:00 2016 OS/Arch: windows/amd64 An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engine: […]

Docker-compose how to specify the directory, similar to the dockerfinle WORKDIR instruction

Such as the title, in the project service when the use of docker-compose, the official document which did not find instructions. My temporary solution is via dockerfile FROM node ADD ./web /web WORKDIR /web But I would like to specify directly through docker-compose. But there is no such explanation

Heads up! This alert needs your attention, but it's not super important.