error: couldn't read version from server: Get http://localhost:8080/api: dial tcp connection refused

I installed kubernetes on linux. I used these steps Firstly everything is normal and working. Then i closed terminal and again open give error permission denied. After restart machine and give the below error kubectl get pod error: couldn’t read version from server: Get http://localhost:8080/api: dial tcp connection refused I am just getting […]

Gradle blocked on :app:transformClassesWithDexForDebug

Today I was working on my android app. I pushed a new commit and I was waiting for the notification of successful build, but nothing arrived. The build server is blocked on :app:transformClassesWithDexForDebug and the server has 100% load on every cpu core. I tried also using jdk8 and jdk7 but nothing changed. For blocked […]

Docker error :System Error : no space left on device

I am getting this error whenever I am trying to build my image. Searched on internet and got some links but none of them solved my problem. Error: System error: write /cgroup/docker/5dba72d862bf8171d36aa022d1929455af6589af9fb7ba6220b01842c7a7dee6/cgroup.procs: no space left on device. This is the output of ‘df -h’: Filesystem Size Used Avail Use% Mounted on /dev/sda2 56G 24G 29G […]

How to use docker to spin up postgres database

I’m trying to have my app code communicate with my postgres db, each of which is running in separate container. However, whenever I attempt to access my db, I keep getting “dial tcp getsockopt: connection refused” which I understand to mean that there is nothing listening on port 5432. But I don’t understand how […]

mysqldump does not dump everything when running in script

I have a mysql server running in a docker container named dockersql. To backup it, I use docker run -ti –rm –link dockersql:mysql -v $HOME/backups/20160202/:/hostbackup mysql /bin/bash -c “mysqldump -u user -p -h mysql database > /hostbackup/mysqldump.sql” This works fine. I have include this same line inside a shell backup script which does other stuff. […]

docker-compose with docker-swarm under docker-machine not mounting volumes

I have a working docker-compose example running a static html with nginx. The directory tree: ├── docker-compose.yml ├── nginx │   ├── app │   │   └── index.html │   └── Dockerfile The docker-compose.yml: nginx: build: ./nginx volumes: – ./nginx/app:/usr/share/nginx/html ports: – 8080:80 The nginx directory has the Dockerfile: FROM nginx Everything is working right. The problem is […]

Artifactory bad gateway error

I am trying to use artifactory as a docker registry. But pushing docker images gives a Bad Gateway error. Following is my nginx configuration upstream artifactory_lb { server; server backup; server; } log_format upstreamlog ‘[$time_local] $remote_addr – $remote_user – $server_name to: $upstream_addr: $request upstream_response_time $upstream_response_time msec $msec request_time $request_time’; server { listen […]

Docker automated build not showing Dockerfile after completion

I setup some automated builds in github and the Dockerfile tab is showing empty for some reason. The builds are successful and I can see the dockerfile contents in the build details, but for some reason its not populating the Dockerfile tab. Am I missing a step somewhere?

nginx as proxy to my mysql server in docker

I’m working with a server in the cloud with N dockers containers, in the server I have one nginx that redirect based on the domain to my docker containers, I can perfectly redirect my http traffic, but I’m getting troubles with when it is mysql since it uses a protocol different to http, I tried […]

Docker Share Volume and edit files

I’m pretty new to Docker and I’m stuck in sharing volumes. The situation is this: Configure the container (apt-get install, …) Copy files from host to container (ADD files dest) Generate some file in dest folder trough scripts Run the container with shared volume (sudo docker run -v /path/to/xos:/opt/xos -p 9999:8000 –add-host=”″ xos) The container […]

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