Category : mounted-volumes

I have a problem with Teamcity build which runs tests inside. My project Dockerfile is FROM nexus-repo/ubi8/openjdk-11:1.3-6 COPY src /usr/autotests/src COPY pom.xml /usr/autotests/pom.xml COPY settings.xml /usr/autotests/settings.xml ENTRYPOINT mvn -s settings.xml test -Dmaven.repo.local=/usr/autotests/.m2/repository Then i have Teamcity Docker build for this Dockerfile Finaly i have Teamcity step that runs Tests inside built image with command docker ..

Read more

I m running a jupyter container on distant server with this command docker run -p 8888:8888 jupyter/scipy-notebook:33add21fab64. I wanted that my new notebook created can access to my repository rep1 in the server. my rep1 is under ~ and let’s notice that when i did os.getcwd() in my new notebook i got ‘/home/jovyan/’ I tried ..

Read more

I am tired of looking at various results on how to mount a windows network drive within a windows based container. I tried to mount with the option docker run -it -v servershare:c:data mcr.microsoft.com/windows/servercore:ltsc2019 I get the result as docker: Error response from daemon: invalid volume specification: I also tried to mount the network drive ..

Read more

I am trying to mount a local file system in a Docker container for a database. As written in the instructions in the official repository https://hub.docker.com/_/mariadb: Using a custom MariaDB configuration file The startup configuration is specified in the file /etc/mysql/my.cnf, and that file in turn includes any files found in the /etc/mysql/conf.d directory that ..

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