I'm unable to connect Docker Remote API using nodejs hosted in AWS

I have created t1.micro instance in Amazon web-services(AWS), and installed docker.io. I executed following commend in SSH client “sudo docker -H tcp:// -H unix:///var/run/docker.sock -d &”. when I am trying to get all images : myipaddres:4243/images/json. I’am getting “This webpage is not available” page.

Nginx status page in Docker

I have a server which hosts several Docker containers including an Nginx reverse proxy to serve content. In order to get status of this server I have added the following location block: location /nginx_status { stub_status on; access_log off; allow; allow; deny all; } Under normal circumstances I would only have opened up […]

How to deploy web service on Docker container

This is my Dockerfile: #Build java web app container image FROM ubuntu MAINTAINER wangyao #Make java and tomcat install directory RUN mkdir /usr/local/java RUN mkdir /usr/local/tomcat #Copy jre and tomcat into image ADD jdk1.8.0_45.jdk /usr/local/java/ ADD apache-tomcat-7.0.62 /usr/local/tomcat/ ENV JAVA_HOME=/usr/local/java/Contents/Home CMD cd /usr/local/tomcat;./bin/catalina.sh run #Expose http port EXPOSE 8080 Then i built it and try […]

Hangs on run and exits only with CTRL + C

These are our images: PS C:\Users\bigfo> docker images REPOSITORY TAG IMAGE ID CREATED SIZE mongo latest 71c101e16e61 12 days ago 358MB mongo <none> 88b7188af865 2 weeks ago 358MB hello-world latest 1815c82652c0 3 weeks ago 1.84kB These are our containers: PS C:\Users\bigfo> docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2b2b2d73559d mongo “docker-entrypoint…” […]

Push images to private docker registry error with 500

I set up a private docker registry. I build and push two images to my private registry. Both of them are built successfully, and one of them is pushed successfully. But the other one pushed error, and I found the docker registry log as bellow: – – [06/Jul/2017:01:48:56 +0000] “PUT /v1/repositories/imagename-test/ HTTP/1.0” 500 291 […]

Unable to access the internet from Kubernetes containers

I am working with the Vagrant Kubernetes 0.9.3 setup on Mac OSX. Environment: Kubernetes 0.9.3 Vagrant 1.7.2 VirtualBox-4.3.20-96996-OSX I am able to successfully deploy images and start containers in a single minion environment: master minion-1 I am unable to access the Internet from inside a running container. I can access the Internet from the minion-1 […]

Supervisor is not starting up

I am following cloudera cdh4 installation guide. My base file FROM ubuntu:precise RUN apt-get update -y #RUN apt-get install -y curl RUN apt-get install -y software-properties-common python-software-properties RUN add-apt-repository ppa:webupd8team/java RUN apt-get update -y RUN echo debconf shared/accepted-oracle-license-v1-1 select true | \ debconf-set-selections RUN apt-get install -y oracle-java7-installer #Checking java version RUN java -version My […]

How to create local mirror for ubuntu inside docker container?

I wants to create local mirror for Ubuntu inside docker container. Here is the link I am following from git hub. https://github.com/ekino/docker-images Now the issue is that it is taking too much time to download the whole packages,even though I divided its in part like main,restricted and universe but it is downloading packages of 22 […]

How to debug the creation of docker container container in Vagrant

I am trying out a basic example of running a container in a vagrant docker host. For this I created The Dockerfile: FROM ubuntu #Other instructions The Vagrantfile Vagrant.configure(“2”) do |config| config.vm.provider “docker” do |d| d.build_dir = “.” d.has_ssh = true d.name = “vagrant-docker-test” end end When I run vagrant up it creates a virtualbox […]

Why the images information provided by docker info is different from docker images

Hi I’m trying to extract the number of docker images I have in my machine If I run the command docker info it gives me this: Containers: 15 Images: 27 Driver: aufs Root Dir: /var/lib/docker/aufs Dirs: 57 Username: miggom Registry: [https://index.docker.io/v1/] WARNING: No swap limit support If I run the command docker images -a it […]

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