docker logs and buffered output

I want to continously print dots without newline (waiting behavior). This bash one-liner works fine on my machine: $ while true; do sleep 1; printf ‘.’; done …….^C However, when I run it in a Docker container, and when I try to read its output with docker logs, no output is printed: $ docker run […]

How to set up connection between Docker containers using AWS Beanstalk and Spring Cloud Netflix

My app consists of several microservices. I want to use NetFlix Eureka as discovery server and I want to deploy my apps as Docker containers. I want to set up communication between my services, but there are few problems: Beanstalk always using nginx as reverse-proxy for container and by default routes all requests to port […]

CoreOS : when pulling large docker image of size greater than 4 GB

docker pull myimagename leads to: /var/lib/docker/overlay/670c89b1815cc9e3e27441690e47042fc554e432472ed8507`4284a890db56da0/ : no space left on device df -h: ╔══════════════════════════════════════════════════════╗ ║ Filesystem Size Used Avail Use% Mounted on ║ ╠══════════════════════════════════════════════════════╣ ║ devtmpfs 4.3G 0 4.3G 0% /dev ║ ║ tmpfs 4.4G 0 4.4G 0% /dev/shm ║ ║ tmpfs 4.4G 17M 4.3G 1% /run ║ ║ tmpfs 4.4G 0 4.4G 0% […]

Install later version of docker-engine stuck on Travis build

Because I need a newer version of docker-compose, I also need a newer version of docker-engine. I tried: before_install: – sudo apt-get install -qq docker-engine However, the build gets stuck at a prompt: Configuration file ‘/etc/default/docker’ ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What […]

Docker (compose) fails to build container when mounting single file from official WordPress image

I’m experiencing the problem with mounting files, opposite to directories which works pretty fine. Specific problem is related to the WordPress’s official image and file wp-config.php (or any other). Here’s the content of docker-compose.yml file: web: image: wordpress ports: – “80:80” volumes: – ./src/wordpress/wp-content:/var/www/html/wp-content – ./src/wordpress/wp-config.php:/var/www/html/wp-config.php environment: WORDPRESS_DB_NAME: dummyname links: – db:mysql db: image: mysql […]

Registry: Error pushing to registry: Authentication is required

I have installed a docker registry to push/pull my image, i login correctly to registry and my account is verified with a confirmation email. I have this error when push an image: # sudo docker push myrepo/my-mysql The push refers to a repository [myrepo/my-mysql] (len: 1) b94fff6a5911: Image push failed Please login prior to push: […]

New device node created on host does not get reflected in Docker container when using –device flag

I’m running a container with the following options: docker run -d —device=/dev/bus/usb:/dev/bus/usb –device=/dev/ttyS0:/dev/ttyS0 instr_img Inside the container I have a Python code which resets a USB device that in turn causes a device file in ‘/dev/bus/usb/002/005’ on the host to be removed and a new file (/dev/bus/usb/002/006) created in its place. The problem is that […]

processing notifications for image upload to docker registry

I am trying to write an endpoint for docker-registry which will return me the name of docker-image which is modified recently (pushed to private docker registry[version 2.1 or 2.3]). I configured notifications endpoint in the docker registry and I am able to get notifications as and when an image is pushed to the private docker […]

How to make mysql and php work together and without show the database password

start mysql container $ docker run –name mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql Connect to MySQL and manually create new database $ docker run -it –link mysql:mysql –rm mysql sh -c ‘exec mysql -h”$MYSQL_PORT_3306_TCP_ADDR” -P”$MYSQL_PORT_3306_TCP_PORT” -uroot -p”$MYSQL_ENV_MYSQL_ROOT_PASSWORD”‘ link the database and start php container $ docker run -d –link mysql:mysql –name myapp -v “$PWD”:/var/www/html -p 80:80 […]

Emulate Bluetooth LE Adapter for Acceptance Testing

I’m developing an Android app that captures Bluetooth LE signals and I’m a big fan of test driven and behaviour driven development. So, I want to develop my app by using TDD and BDD. When it comes to TDD it is no problem to test the bluetooth part with Robolectric. But, when I want to […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.