Category : docker-compose

Currently trying to learn docker. Cant seem to get selenium working inside container. My docker compose file looks like this version: ‘3.8’ services: hub: image: selenium/hub:3.141.59 ports: – 4444:4444 chrome: image: selenium/node-chrome:3.141.59 depends_on: – hub environment: – HUB_HOST=hub firefox: image: selenium/node-firefox:3.141.59 depends_on: – hub environment: – HUB_HOST=hub app: build: context: ./ volumes: – ./app:/app command: ..

Read more

I have a docker-compose.yml similar to: version: ‘3’ services: my_service: image: …. container_name: … volumes: – "./data:/my_service/data" command: > …. After running docker-compose pull, I run manually git clone [email protected]:….., on the host machine, to clone a private GitHub repo inside the shared directory (mapped as volume). This is working fine but I’d like to ..

Read more

How to pass the path of the script file to the CMD in the Dockerfile? Here is my Dockerfile FROM openjdk:8-jdk-alpine as base EXPOSE 8080 WORKDIR ‘/app’ COPY run/ . RUN mvn clean install FROM openjdk:8-jdk-alpine WORKDIR ‘/app’ COPY –from=base /app/data/startup.sh ./startup.sh RUN ["chmod", "+x", "startup.sh"] CMD ["startup.sh", "start"] When I gave CMD ["/app/startup.sh", "start"], ..

Read more

I am trying to route the traffic to my domain using docker-compose and nginx reverse proxy. But when I run the docker-compose, jenkins doesn’t start on my domain but on localhost:80. I am confused why is it not running on the domain that I provided. Any help would be appreciated Docker-compose.yaml: version: ‘3.3’ services: jenkins: ..

Read more

my python backend server returning "Error: socket hang up" when I run it on docker container: Error: socket hang up when I run it on my machine it’s works fine and responding: server response Dockerfile: FROM python WORKDIR /src COPY . . RUN pip install -r requirements.txt ENV PYTHONPATH=. CMD ["python", "app/main.py"] #CMD ["python","-i", "app/main.py"] ..

Read more