Currently Docker CLI tool only capable of pulling or refreshing a single image at one time, it's quite a problematic if were in need to refresh a numbers of image.Read More
Version 1.3 of Docker have introduced a long awaited feature which is
docker exec that allowed user to interact with the process inside the container.
docker exec my-lamp cat /var/log/messages
User not only can peek inside the container but actually can enter into container without having additional setup such as
nsenter or others. By spawning a
bash program and stream back terminal to client.
docker exec -it my-lamp /bin/bash
-i will keep the STDIN open thus allowing Bash program to read an input from client.
After installing Boot2Docker using installer tools, run below post installation command.
docker run --rm -v ~/:/target nematix/boot2docker-tool && source ~/.profile
It will automatically configure docker and boot2docker to run along with the extra features.
You can use docker-enter straight from your terminal without using ssh into boot2docker host.
Additional info can be access from here Github
To have you boot2docker running container service accessible on your "localhost" or host computer, following command can be use. The command line specifically modify the boot2docker virtual machine, to add the port forward configuration to the NAT interface.Read More
Sometime we might required to create a clone of existing MySQL table for maintenance purpose or testing an experimental query. We only need 2 query to do this.
CREATE TABLE user_clone LIKE user; INSERT user_clone SELECT * FROM user;
The first line will create a clone of source table including its index and the second line will copy all data from existing one.
Basically nothing was change on the base-code, the true purpose of this release is to add the Apache 2.0 License attribute to the readme file to reflect the original libphonenumber licensing attribute.
Thanks to Lion Vollnhals on making remark on this issue.
First we need to compose and declare some pattern. $pattern = "/(\\(\\')(\\s*.*)(\\'\\))/";
Then using `preg_replace` function we can get the value inside bracket on array return. Below is the full code example.
$pattern = "/(\\(\\')(\\s*.*)(\\'\\))/"; $value = "foo('bar')"; preg_match($pattern, $value, $matches); $result = $matches;
Dokumen is drop-in Markdown document viewer, with minimal setup you can create a beautiful document site from Markdown document and upload it online or use in your application distribution.