Category: Docker

Docker Technology Fans

Docker error The command non-zero code: 1 python

i have problem when i tried to build container. And the error is : The command ‘/bin/sh -c pip install -r requirements.txt’ returned a non-zero code: 1 i don’t know why, i follow the code from documentation but always get error. Dockerfile FROM python:2.7-slim # # # Set the working directory to /app WORKDIR /app […]

Develop guide with docker images

My problem is how to develop with a docker image. For example, my work requires tensforflowimage, apache, and other images. Then, I run docker run -it -p hostPort:containerPort TensorFlowCPUImage. Then I am on the container path: root@14f2ba6db963:~# Here I can run python console to try some tensorflow commands. However, the image only provides environment for […]

Error building a docker in Windows 10

I’m trying to build a docker image from a really simple project, just to start understanding how docker works and communicate. So, I have created a WebApi project, with just one method that returns a 200. Once the project has been created, I created the dockerfile: # TP5 for technology preview (will not be needed […]

where should I put docker-compose.yml

When I pull the images from docker hub. Sometimes, I would like to run the images in a multi-container way. So I choose to use docker-compose. For example, I would run the zookeeper in replicated mode. I will new a file named docker-compose.yml, and run docker-compose up and wait for it to initialize completely. My […]

Docker: can't RUN psql commands from Dockerfile

I have a Python/PostgreSQL project I’m trying to put in a Docker container. When I try to run psql commands inside the container to create a user and a database while building the image, I get this error: psql: could not connect to server: No such file or directory Is the server running locally and […]

Installing docker on azure virtual machine windows 10

I am getting an error upon installing docker on azure virtual machine. m/c configuration: azure vm, windows 10 enterprise, Intel 2.4 GHz, 7 GB RAM, 64-bit operating system, x64-based processor. I went through a few blogs and they asked me to enable nested virtualization on azure vm as follows. Set-VMProcessor -VMName MobyLinuxVM -ExposeVirtualizationExtensions $true But […]

docker-compose oci runtime error starting container process caused connection reset by peer

I updated docker and compose to Docker version 17.06.0-ce, build 02c1d87 docker-compose version 1.14.0, build c7bdf9e Now when I am running container with docker run it works fine. But I have 10+ services defined in compose file. For last 1 year it was working file and after update and restarting docker service it suddenly giving […]

Running Docker compose with ElasticSearch on OS X gives me error sysctl: setting key “vm.max_map_count”: Read-only file system

When running Docker on my my OS X i get the following error: sysctl: setting key “vm.max_map_count”: Read-only file system I know on Linux you can use edit sysctl but i haven’t worked out how to do this on OSX. Ive tried setting Docker for Mac memory under preferences but that didn’t do anything. I […]

docker add “requires at least one argument” error

I have a folder which contains all the necessary components for an app, which I want to make a container of. I have everything set up so far, with the directory /home/user/Documents/App in the Dockerfile under the ADD heading. Then when Idocker build . in the App directory I get this ADD /home/user/Documents/App ADD requires […]

docker behind proxy doesn't use system proxy info

I have installed docker and it wasn’t working even though proxy was setup. Our corporate proxy requires username:password@proxy.I was using bash script to set proxy when needed. It asks me username:password and sets up proxy for the session. I went through https://docs.docker.com/engine/admin/systemd/#httphttps-proxy Docker proxy setup wants me to hard-code my user and pass info. How […]

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