Tag: ubuntu

Docker container volume doesn't write to host

Hi i try to generate some assets within a docker container and put it to a host. All that is running within a docker-machine environment initialised with virtualbox driver. for example i run: docker run -it -v $PWD/testfolder:/var/www:rw ubuntu /bin/bash and then root@b9e73827bc3c:/var/www touch dummy.txt from that point i actually have to see dummy.txt in […]

ASP.NET 5 on Azure Docker on Ubuntu Server

I’m deploying my ASP.NET Core application using Docker. I’ve everything is up and running, I’ve successfully pushed it to the Docker Hub. Now I’ve created a new Azure Docker VM “Docker on Ubuntu Server in Container Services.” I SSH in to that machine, pulled my Docker image from the Docker Hub but when I expose […]

Using UnixSignal in Mono throws System.ArgumentException

I have a console app running .Net 4.6.1 on mono in a Docker Container and it runs fine. When developing the app further I’m looking into responding to unix signals using the Nuget-package Mono.Posix. According to the Mono documentation it is recommended running the UnixSignal handling in a separate thread. So I’m trying to do […]

Docker – Couldn't connect to Docker daemon

I started getting a ERROR: Couldn’t connect to Docker daemon – you might need to run `docker-machine start default`. but i am not using docker-machine (Although i have version 0.5.2 installed) I am running docker directly in my Ubuntu 14.04 LTS with Docker 1.11.0 e Docker-compose 1.7.0. Why am i getting this error? Should i […]

Docker/Jupyter notebook setting Base URL

Using this docker image which includes Jupyter and Spark, among other nice tools I get it to start up fine but it is in it’s own world. I want to access the files on my local machine. The instructions indicate to start it with the following to set a custom Base url docker run -d […]

Docker build ubuntu:xenial issue

I try to build a docker image with docker-py in Jenkins. The scripts looks like this: # Let’s build the toolchain-base-image from io import BytesIO from docker import Client from pprint import pprint import sys cli = Client(base_url=”tcp://″) #cli = Client(base_url=’unix://var/run/docker.sock’) GCC_VERSION_TAG=”4_9″ with open(“/path/to/docker-” + GCC_VERSION_TAG + “-gcc-base-image-dockerfile”, mode=”r”) as dockerfile: f = BytesIO(dockerfile.read().encode(‘utf-8’)) try: […]

Docker container cannot access network

All my containers cannot access internet if run without ‘–net=host’. Environment distro: Ubuntu 13.04 docker: 1.6.2 go: go1.4.2 ufw: DEFAULT_FORWARD_POLICY=”ACCEPT” 2375 port: 2375/tcp ALLOW Anywhere docker daemon: docker -d -H unix:///var/run/docker.sock –bip= -b docker0 docker0 interface: docker0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN Question I can append –net=host manually, but kubernetes always runs the […]

Kubernetes docker flannel subnet file not found

I want to setup a kubernetes multi-node cluster on docker following http://kubernetes.io/v1.1/docs/getting-started-guides/docker-multinode/master.html on a ubuntu server. The single node setup works fine. However For the multi-node setup I occur several problems: https://github.com/kubernetes/kubernetes/issues/22256 The most important one being: sudo docker -H unix:///var/run/docker.sock exec someHash cat /run/flannel/subnet.env cat: can’t open ‘/run/flannel/subnet.env’: No such file or directory I […]

Docker ubuntu container can ping archive.ubuntu.com but not apt-get

I used docker-machine to setup a docker host on our openstack private cloud. Everything went as expected. But when I try to build a Dockerfile with a ubuntu:14.04, and simply do a RUN apt-get update I get this: Ign http://archive.ubuntu.com trusty InRelease Ign http://archive.ubuntu.com trusty-updates InRelease … Takes forever, and times out. Then I remove […]

Docker daemon fails to restart gracefully

Been seeing an intermittent issue with one of my docker deployments. Basically, the docker daemon fails to restart gracefully. From syslog: init: docker main process ended, respawning init: docker main process (14333) terminated with status 1 init: docker respawning too fast, stopped From docker upstart log: FATA[0000] Error starting daemon: error initializing network controller: could […]

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