Category : docker

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 web application that I can deploy successfully using Docker Swarm with a Compose file: docker stack deploy –compose-file docker-compose.yml common and is described by the file: version: "3.8" services: www: image: localhost:5000/www.learnintouch ports: – "81:80" – "444:443" networks: common: Now I add a Traefik service to it: version: "3.8" services: traefik: image: ..

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

My Docker container running in a minikube pod has configured a directory mounted from the host’s non-empty /home/my_username/useful/dir. kubectl shows what I expect: $ kubectl get –namespace=my_namespace pods/my-pod -o json | jq ‘.spec.volumes[3]’ { "hostPath": { "path": "/hosthome/my_username/useful/dir", "type": "Directory" }, "name": "useful_dir" } $ kubectl get –namespace=my_namespace pods/my-pod -o json | jq ‘.spec.containers[].volumeMounts[3]’ { ..

Read more

I want to develop frontend app in an isolated container. To set it up, I have followed Developing inside a Container document. This is my project: ├── .dockerignore ├── .git │   └── foo ├── .gitignore ├── .gitmodules ├── backend │   ├── .devcontainer.json │   ├── .git │   │ └── foo │   ├── .gitignore │   ├── Dockerfile.development ..

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