Creating docker images with services (Service discovery) [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 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.

Related

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.

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.

How build docker image from multiple custom containers [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have configured MySQL + phpMyAdmin + prestashop containers.
I would like to build a unique image with my own custom containers.
How can I do?
Thanks for your help.
What you are looking for is Docker Compose. Docker compose will automatically start the images that you have and you can also link these images automatically inside docker-compose.
If you have done some manual changes to the containers running, you can commit the container and the changes to a new image using
docker commit <mysqlcontainer> mysql-custom-image
And then in the compose file, you can just reference those commits.
...
image: mysql-custom-image
A container is made from a Dockerfile
https://docs.docker.com/engine/reference/builder/
If you want to build your custom container, you should create one and make it as you want it to be!
Here's a tutorial: https://www.howtoforge.com/tutorial/how-to-create-docker-images-with-dockerfile/

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