Mount HDD to docker container [closed] - docker

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I tried to use internal HDD in docker container. I have datasets in HDD to train AI model. And I want to train a model using with codes in container. I can not copy datasets to container because it is too large datasets. How can I connect them. Can I mount HDD, and can I use my datasets as input in container. Any suggestions?
OS: Ubuntu 18.04
Thanks

Is the command
docker -v (directory of HDD):(directory inside container) <other options.. --name, {image Name} etc>
not working as expected?
The above command will reference the HDD at the directory inside the container you have provided without copying, so be catious about changes as they will be reflected in the HDD's data.
Check this for more information.

Related

Networking issues when running multiple Docker containers [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last month.
Improve this question
I am currently getting familiar with Docker and one issue I have is launching several Docker containers on the same host machine.
If I run 32 or less containers, everything works fine.
However, if I start more containers, not only my host machine loses internet connection, but also the containers are not able anymore to communicate with each other.
After searching the web, this seems to be a common issue, but no solution worked for me yet.
I tried setting up custom Docker network bridges as well as editing the /etc/docker/daemon.json file.
In any case, if I run docker network inspect on the respective network, everything seems fine and each containers has its own IP address correctly assigned.

Is it possible to run container inside container in k8s 1.21 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
As we all know newest versions of k8s coming with container-d run time , in previous versions I was able to run container inside container (pod) , by using docker in docker approach,
How can I achieve this functionality now.
Docker should works in Kubernetes v1.19 as usually (also Docker in Docker), because:
Kubernetes is deprecating Docker as a container runtime after v1.20.
and:
Dockershim is being removed from Kubelet as early as v1.23 release,
which removes support for Docker as a container runtime as a result.
In that case you need to change your container runtime from Docker to another supported container runtime.
One thing to note: If you are relying on the underlying docker socket
(/var/run/docker.sock) as part of a workflow within your cluster
today, moving to a different runtime will break your ability to use
it. This pattern is often called Docker in Docker. There are lots of
options out there for this specific use case including things like
kaniko,
img, and
buildah.
More information on the official Kubernetes page

Run second os in docker [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Previously, I used Virtual Box to launch a second operating system on a computer. But it was very laggy :( After learning about docker I was interested, can we run other ubuntu on docker on ubuntu? In particular, with graph interface.
Docker does not has an “OS” in its containers. In simple terms, a docker container image just has a kind of filesystem snapshot of the linux-image the container image is dependent on. All Linux distributions are based on the same kernel, so you could, for example, run a filesystem based on Ubuntu in a container.
A container/image could contain an Ubuntu filesystem snapshot with something like this:
FROM ubuntu:21:04
However, the container is not in and of itself a virtualized environment in the same way that a Virtual Machine is.

How to run docker image in private registry [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have a private insecure registry on an Ubuntu Server 18.04 (using docker-compose), whose IP is let's say 192.168.168.168; when on a Windows client I browse from Chrome to
http://192.168.168.168:5000/v2/_catalog
I get
{"repositories":["hello-world2","mywebservice"]}
which is ok, since I pushed them to the private registry.
So:
How do I run those images on the Ubuntu server?
With regard to the "mywebservice", which is a REST webservice, how do I run it, so I can access it from a browser of my local Windows client?
I already tried
docker run 192.168.168.168:5000/mywebservice
but got
Unable to find image '192.168.168.168:5000/mywebservice:latest'
locally
A Docker registry is not a Docker Engine and it cannot run containers.
If one wants to run a Docker container on the same server where the Docker registry is, it is necessary to pull the image from the registry to a Docker client (using docker pull localhost:5000/image_name), and then run it the usual way.

Is it possible to create a docker container that contains one or more containers? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I want to create a docker container which contains one or more containers.
Is it possible with Docker?
To run docker inside docker is definitely possible. The main thing is that you run the outer container with extra privileges (starting with --privileged=true) and then install docker in that container.
Check this blog post for more info: Docker-in-Docker.
One potential use case for this is described in this entry. The blog describes how to build docker containers within a Jenkins docker container.
However, Docker inside Docker it is not the recommended approach to solve this type of problems. Instead, the recommended approach is to create "sibling" containers as described in this post

Resources