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
when I use yaml file to deployment pods like this and use command kubectl apply -f xx.yaml
④image : nginx:latest
where does come from this Nginx image?
Is there any official Kubernetes documents about this?
Best Regards
Nginx is a webserver that is used as an example for a pod template here.
nginx:latest refers to the nginx image on the Docker hub.
The :latest part refers to which version of nginx to use, in this case it picks the latest version.
You can read more about Kubernetes templates and container here.
The general image name format is <registry>/<image-name>:<tag>.
Here, nginx:latest is in format of <image-name>:<tag> which refers registry is
dockerHub. If you want to pull image from any other registry you have to put it in <registry> section. To learn more about images click here.
Related
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
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.
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.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
As it is shown in the readme of the official docker image, exists a prebuild image for LTS or weekly release. I can use it easily adding the FROM jenkins/jenkins directive in my docker file, as usual. In the documentation, is commented that you can also use the alpine based image.
If you see the github code, here we have several Dockerfile. One of them is the Dockerfile-alpine file. But I cannot find it in dockerhub
Does exists a prebuild image of Jenkins using alpine or do I need to download the code an compile myself? If exists, which tags are needed for using -as example- jenkins + lts + alpine?
jenkinsci/jenkins:alpine
or
jenkinsci/jenkins:lts-alpine
All official tag list=> https://hub.docker.com/r/jenkinsci/jenkins/tags/
On dockerhub the various images versions for a software, are separated by a tag that is used to label the different images.
On dockerhub, you can find the tags tabs which documents all the different flavors for an image.
In particular for jenkins you can find the jenkinsci/jenkins:alpine and jenkinsci/jenkins:lts-alpine images. Thus the images are already on dockerhub and you don't need to build them yourself.
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