Tag: dockerfile

rabbitMQ nodedown error from Dockerfile

When building this Dockerfile, when it gets to the command: rabbitmqctl status It Returns: Error: unable to connect to node rabbit@d3659c5e113e: nodedown DIAGNOSTICS =========== nodes in question: [rabbit@d3659c5e113e] hosts, their running nodes and ports: – d3659c5e113e: [{rabbitmqctl20,52855}] current node details: – node name: rabbitmqctl20@d3659c5e113e I have no idea where to go from here. This is […]

Docker ADD is failing with relative directory

My docker file has following entry ENV SCPATH /etc/supervisor/conf.d RUN apt-get -y update # The daemons RUN apt-get -y install supervisor RUN mkdir -p /var/log/supervisor # Supervisor Configuration ADD ./supervisord/conf.d/* $SCPATH/ The directory structure looks like this ├── .dockerignore ├── .gitignore ├── Dockerfile ├── Makefile ├── README.md ├── Vagrantfile ├── index.js ├── package.json └── supervisord […]

Can't configure locale in Docker image

I’m trying to install a locale file in my Docker image, but for some reason it doesn’t install correctly. These lines inside my Dockerfile do configure + install the locale files: # Install and configure locales RUN [“apt-get”, “install”, “-y”, “locales”] RUN [“locale-gen”, “nl_NL.UTF-8”] RUN [“dpkg-reconfigure”, “locales”] RUN [“update-locale”] ENV LANG nl_NL.UTF-8 The image is […]

docker container running but not responding to localhost:49153

I am doing POC around using ubuntu, nginx component for which i have below mentioned Dockerfile FROM ubuntu:14.04 MAINTAINER Paresh Bhavsar “bhavsar.er@gmail.com” ENV REFRESHED AT “04-06-2015” RUN apt-get update RUN apt-get -y -q install nginx RUN mkdir -p /var/www/html ADD nginx/global.conf /etc/nginx/conf.d/ ADD nginx/nginx.conf /etc/nginx/nginx.conf EXPOSE 80 nginx.conf file — user www-data; worker_processes 4; pid […]

`docker attach` command can't enter into a container unless Ctrl+C or Enter pressed

I run docker using command: docker run -p 3000:3000 -it -v $(pwd):/home/root/qadev/ –name loquat bar-qadev-base:latest /bin/bash then I can enter into container automatically. Minutes later I pressed ctrl+d or ctrl+p+q to exit it. Now I would like to enter into this loquat container again by issuing command: docker start loquat docker attach loquat But the […]

Can not write to '/dev/tty' when build Docker images

I’m building docker images from Dockerfile and when I run a script(CUDA installation script) which has echo XXX > /dev/tty in it, then an error “/dev/tty: No such device or address” comes up and the build failed. I’ve tried –silent flag but it seems do no help. My base image is Cent OS 7. Is […]

Use: docker build -t myapp . cannot get image successfully

My Docker file is : FROM microsoft/aspnet COPY . /app WORKDIR /app RUN [“dnu”, “restore”] EXPOSE 5004 ENTRYPOINT [“dnx”, “project.json”, “kestrel”] Has anything wrong in my Docker file? Below are response: Restore failed A task was canceled. NuGet Config files used: /root/.config/NuGet/NuGet.Config Feeds used: https://www.nuget.org/api/v2/ The command ‘dnu restore’ returned a non-zero code: 1

Should files from a base Docker image be present in a derived image?

I’m creating a Dockerfile that uses a base image: dockerfile/rabbitmq. In the Dockerfile for rabbitmq there’s a line to install a script into the image: ADD bin/rabbitmq-start /usr/local/bin/ In my Dockerfile I don’t have this line. I have my own ADD lines. When I run the image all the rabbitmq binaries and config are there, […]

Docker LAMP Stack

I’m just learning Docker and I’ve managed to get a few containers going, but I’m trying to learn how to run everything on separate containers. SO, the idea is that I have: Mysql Container (working) PHP-FPM Container (partially working) Apache Container (not working yet) I’ve setup my LAMP stack on a vagrant and tested it […]

docker tutorial how to install package

I’m just following the getting started of docker and I’m a bit lost. I’ve create a mydockerbuild folder in my document and a dockerfile with this code (from the tutorial) FROM docker/whalesay:latest RUN apt-get -y update && apt-get install -y fortunes CMD /usr/games/fortune -a | cowsay Then following the tutorial I run this command: docker […]

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