Category: Docker Tips

Docker mirror how to dynamically increase the port mapping?

For example, I installed a new redis, need to expose the 6379 port, the total can not re-run a new port mapping 6379 port, and then delete the old container, it is too much trouble, there is no more familiar with the docker Classmates, how do you operate?

Can help me look at my docker under the implementation of cron Bu?

This is a run php-fpm container, debian jessie mirror, start the command cron && php-fpm start, I en into the container, see no log, ps aux can see crond process in the run ah. And if I manually execute the command in cron, you can see log, try restart container.

Use the docker-compose to write a regular lnmp container, pdo connect mysql fails with error number 2002.

Use docker-compose prepared lnmp container, pdo connection mysql failure, the error number is 2002 index.php code is as follows <?php try{ $pdo = new PDO('mysql:dbname=test;host=;charset=utf8mb4;port=3306','root','root'); }catch(PDOException $pe){ die($pe->getMessage()); } If host is , the error is: SQLSTATE [HY000] [2002] Connection refused If host is localhost , the error is: SQLSTATE [HY000] [2002] No such […]

Boot2docker can not start

Docker rookie one, as shown in the implementation of boot2docker up error, find a solution

Docker installed unity-desktop suggested that the choice of keyboard layout, I do not know how to choose?

I thought I would like to enter the number of carriage return, but unfortunately not, did not respond

What is Docker's problem?

It will appear when building a mirror or running a container kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 This problem occurs after running two containers continuously. System: Fedora release 24 (Twenty Four) Kernel: Linux localhost.localdomain 4.7.4-200.fc24.x86_64 #1 SMP Thu Sep 15 18:42:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Docker version 1.10.3, […]

Docker for mac container can ping 通 external network ip, but can not initiate network requests

The problem is probably like this: I use the docker debain mirror to install php package debain , use perl install xdebug installation, but the installation waiting for timeout, I would try to ping the xdebug the official website, found ping 通, but curl get home resources, Overtime. The Then I wonder. The Then try […]

How to send a directory from the machine to the docker image

When you add a file by build docker image, you need to use the ADD or COPY keyword, but either ADD or COPY is followed by a directory or file relative to the path of the directory where the Dockerfile file is located. Is there a way to pass an absolute path To send a […]

About rancher calls the api to upgrade the container

How to call the upgrade through the richer api upgrade to the service in the stack of containers in the application, the English is really difficult, and there is no case for reference, the official document address http: // … , There is a big god to give a case study to learn, thank you

How does the docker container call the host system's commands?

Such as the title, docker container call the host system command?

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