How build docker image from multiple custom containers [closed] - docker

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/

Related

Use a flag to force docker build not use other images if the build process failed [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 yesterday.
Improve this question
I was thinking whether there is a flag in docker build command.
The scenario is that when I use docker build, I must keep watching it. If it failed in the build process this time, it will use the latest image in local machine. If I didn't notice this, I would miss some problems. Cause the lastest image was a successful one without my new changes.
So I want to know if there are some flag for docker build command.
For example, "docker build --ForceThisBuild". If the build process failed, the build will stop and not use any other existing images. No matter the local ones or the remote imagines in the internet.
At the same time, I hope it can use the existing layer. It is fine for my purpose.

I need advice on setting up Go tests [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 days ago.
Improve this question
I am coming from a PHP world. Our project is in a docker container and you can use php unit locally, on travis etc, you just tell it to search for files that have .tests. We are switching over to Go so I am trying to learn this language and what I am struggling to understand is testing. So I have a service that is compiled and its binary is copied to Docker and run from there. Locally I can run go test, however, because it is running outside of my docker container it can't connect to my database. The other problem is setting up the deployment process. I assume I can't just tell travis to search for files that end with test.go because they are not in the docker container. So does anyone have a good material on how it works in Go world? Am I supposed to copy not just the binary but all the files and run tests inside Docker?
use it:
1.run go test before go build in docker-build
2.usegomock if test have different port and url

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