Run second os in docker [closed] - docker

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.

Related

Mount HDD to docker container [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 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.

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.

Containers versus Docker versus Kubernetes [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 3 years ago.
Improve this question
Please explain the difference between Containers, Docker and Kubernetes.
Who owns them and how can we learn more about these new technologies
Container : Package Software into Standardized Units for Development, Shipment and Deployment.
Docker: Docker is enterprise container plaform which use to create the container and container images.
Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
There are also some platfrom like docker for example rocket which can be also use to create container images and container.
Kubernetes : Kubernetes is comes under the CNCF organization. Kubernetes called as k8s which is open source project.Kubernetes is orchestration tool which use to handle and manage one or more containers.

Existing Infra of Kubernetes with Docker EE Licensing [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 4 years ago.
Improve this question
I am a bit confused about Docker EE. In my case I have fully working setup of Kubernetes. It has few dev,test application containers, and now we want to move for production containers(App) which are client facing so developers were talking about docker EE for prod. Now how it will affect my existing kubernetes infrastructure? Do I need to go for any additional configuration for my kubernetes, or it's just way of creation of container image by developer part will change?
As existing Kubernetes infra maintaining part is anything changes?
DockerEE has its own way to install and setup kubernetes.
Its simpler than the usual kubernetes setup in my opinion. But one thing i noticed in dockeree, kubelet is running as a container managed by swarm. Most if not all kubernetes control plane components are managed by swarm not systemd.

Creating docker images with services (Service discovery) [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 4 years ago.
Improve this question
How to create two docker images, one with service A, one with service B. Both images should also contain a consul agent, when complete, they should be able to startup and discover the services in the other image.
See docker-compose
Docker compose allows you to defining and run multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

Resources