Tag: boot2docker

Fig doesn't link two containers

Long story short: fig up doesn’t link 2 containers properly when docker rundoes. Scenario: There are 2 containers: one with Cassandra, another with client service. When containers start Client expects to have cassandra hostname in hosts file and be able to reach it’s 9042 port. I use docker’s links to tight containers together. Here is […]

Vagrant ssh to Docker container

I run Drupal as a Docker container in the Vagrant box boot2docker (on Windows 8.1): Vagrantfile (my Docker container) # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.provider “docker” do |docker| docker.vagrant_vagrantfile = “host/Vagrantfile” docker.image = “drupal” docker.ports = [’80:80′] docker.name = ‘drupal-container’ end config.vm.synced_folder “.”, “/vagrant”, type: “smb”, disabled: […]

docker official tomcat image logs not showing anything?

I have built my docker java webapp image by adding war file to webapps folder of docker official tomcat image which is my base image in the dockerfile. I tested one small application and ran image. I can see pages in my web browser. But when i built another image by adding different war file. […]

container monitoring not enabled by default

We would like to monitor docker container metrics parameters like CPU, network, memory etc. we are following https://docs.docker.com/articles/runmetrics/ and found that monitoring metrics is not enabled by default. cat /proc/cgroups #subsys_name hierarchy num_cgroups enabled cpuset 1 7 1 cpu 2 7 1 cpuacct 3 7 1 memory 4 7 1 devices 5 7 1 As […]

Why is 'fig build' returning: AttributeError: 'WrappedSocket' object has no attribute 'recvfrom'?

My command: (I tried fig build –no-cache as well) fig build db uses an image, skipping Building web… Traceback (most recent call last): File “/usr/local/bin/fig”, line 9, in <module> load_entry_point(‘fig==1.0.1’, ‘console_scripts’, ‘fig’)() File “/Library/Python/2.7/site-packages/fig/cli/main.py”, line 31, in main command.sys_dispatch() File “/Library/Python/2.7/site-packages/fig/cli/docopt_command.py”, line 21, in sys_dispatch self.dispatch(sys.argv[1:], None) File “/Library/Python/2.7/site-packages/fig/cli/command.py”, line 28, in dispatch super(Command, self).dispatch(*args, […]

docker out of disk space

I’m hainvg trouble with docker and volume size. I’m running docker-machine with three containers. The one giving me trouble is the MySQL container which has a data-only container for persistance. When I try to import a mysql file, mysql complains that the table is full, which really means that the disk is out of space. […]

docker run command output

I am just learning the basic basic docker commands by setting up in Ubuntu . By running the following command : $sudo docker run -i -t tutum/hello-world /bin/bash I get the output as : root@1035h04e176:/# I dint understand whats going on here. I thought $docker run … /bin/bash will create a new container with the […]

Error in build from Dockerfile for Ubuntu image with Mono installed

I have the following docker file that I am attempting to use to build a Ubuntu image with mono. FROM ubuntu:14.04 MAINTAINER John Smith <John.Smith@gmail.com> RUN sudo apt-get update RUN sudo /bin/bash -l -c apt-get install wget RUN sudo /bin/bash -l -c apt-get http://download.mono-project.com/repo/xamarin.gpg RUN sudo apt-key add xamarin.gpg RUN sudo echo “deb http://download.mono-project.com/repo/debian wheezy […]

Docker pull not getting image tagnames

I’m running docker with boot2docker on OS X 10.10. I’m following the main tutorial and doing a docker pull ubuntu It gets the image okay, however when I then do docker images it only lists ubuntu:latest REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu latest 5506de2b643b 3 weeks ago 199.3 MB instead of the full […]

docker -v and symlinks

I am on a Windows machine trying to create a Dart server. I had success building and image with my files with ADD and running the container. However, it is painful to build an image every time I wan’t to test my code so I thought it would be better to mount my files with […]

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