Tag: dockerfile

Can't deploy .war file using tomcat 6.0.24 and docker

I’m using docker and tomcat 6.0.24 and centos6.6. I want to use the “RUN” command RUN /usr/local/apache/bin/startup.sh in dockerfile and unpack the war, so that it can be edited through dockerfile itself. The problem is invoking startup.sh which seems to be successful, as docker build continues after that but when I docker run the final […]

Jenkins and SonarQube in same dockerfile

How to create Docker image which contains jenkins and sonarqube in same container. I have a dockerfile for jenkins. FROM jenkins USER root RUN apt-get update \ && apt-get install -y sudo \ && rm -rf /var/lib/apt/lists/* RUN echo “jenkins ALL=NOPASSWD: ALL” >> /etc/sudoers USER jenkins COPY hudson.plugins.msbuild.MsBuildBuilder.xml /var/jenkins_home COPY hudson.plugins.sonar.SonarPublisher.xml /var/jenkins_home COPY hudson.plugins.sonar.SonarRunnerInstallation.xml /var/jenkins_home […]

Docker containers can not start based on Dockerfile

My Dockerfile FROM javamachine_0.1.2 MAINTAINER Meiram RUN /report/report.sh start COPY resolv.conf /etc/resolv.conf CMD update-locale LANG=ru_RU.UTF-8 EXPOSE 7007 After I building the image docker build -t javamachine_0.1.3 . docker run –net mynet –ip –dns -td javamachine_0.1.3 But container can not to start. docker start container_id is not working. The status of container same (exited)

Docker-Compose POSTGRES script only creates db not table

I am trying to create a postgres database that is seeable from another container by using docker-compose. I can link the containers, and I verified that they can see each other. What my problem seems to be is that my postgres container is not being provisioned correctly. I have a script called create_db.sql and I […]

nginx not starting inside Docker [duplicate]

This question already has an answer here: Dockerized nginx is not starting 4 answers

Windows Image on Docker

How can I create an image in Docker with Windows as the base OS. For instance; the ‘FROM‘ command in a Dockerfile is used to load the base OS kernel. Eg: ‘FROM ubuntu‘(ubuntu kernel in this case). Is there a way in which I can run a command like ‘FROM windows7‘. I need it to […]

how to map a local folder as the volume the docker container or image?

I am wondering if I can map the volume in the docker to another folder in my linux host. The reason why I want to do this is, if I don’t misunderstand, the default mapping folder is in /var/lib/docker/… and I don’t have the access to this folder. So I am thinking about changing that […]

Docker didn't forward the port from web service

I’m using ASP Core image to create a new container. I’ve developed simple service which uses port 5000. Now I created Dockerfile and built container which exposes EXPOSE 5000 Running this container with a command docker run -it -p 8080:5000 <name> or even docker run -it -p <name> doesn’t lead to navigation to the […]

PyCharm Docker Deployment “[Errno 2] No such file or directory”

I’ve set up the Docker Deployment plugin on PyCharm, however, on hitting play, the Deploy log shows a failure with: Could not open requirements file: [Errno 2] No such file or directory: ‘environments/dev/requirements.txt’ I assume that this has something to do with the docker build context that is part of the Docker Deployment plugin. I’ve […]

Docker deploy my Strongloop Loopback Node server

I’d like to dockerize my Strongloop Loopback based Node server and start using Process Manager(PM) to keep it running. I’ve been using RancherOS on AWS which rocks. I copied (but didn’t add anything to) the following Dockerfile as a template for my own Dockerfile: https://hub.docker.com/r/strongloop/strong-pm/~/dockerfile/ I then: docker build -t somename . (Dockerfile is in […]

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