Posts by Luiz Carlos Faria • 917 points
40 posts
-
0
votes1
answer21
viewsA: Consumer Rabbitmq is not working
Man, there’s some good opportunities in these 65 lines: lack of Prefetch / Qos configuration. Or only 1 consumer will pick up all queue messages and you will have no scale. Your Add-On class is…
-
0
votes2
answers142
viewsA: Docker: Problem using container IP
Docker was not designed for you to handle his IP’s (although it has this feature for very peculiar cases, this is not your scenario). The IP addresses of the containers were designed to be dynamic,…
-
1
votes1
answer87
viewsA: Why use Docker to program?
One of the reasons to use container, you already gave. Additional resources. To develop you gain by being in the environment closest to productive. Where you can handle the same settings and mainly,…
-
0
votes1
answer43
viewsA: How to deal with the communication between containers in a swarm cluster?
Any service that is in this overlay network, sees its Lastic master by the name "es-master" can use es-master:9200 or any worker by "es-data", can use es-data:9200, whether or not you have exposed…
dockeranswered Luiz Carlos Faria 917 -
0
votes1
answer147
viewsA: Cors Error - Visual Studio . Net Web API React
Understanding CORS This happened because CORS is a browser security implementation. It is the browser that blocks the request. The server, in this case, has only the role of notifying, when asked,…
-
1
votes1
answer104
viewsA: Docker Compose Wordpress Plugin Does Not Install: Connection Refused
Wordpress is not so smart to know that its url is different from the request url. So you should use both on the same port. If for your wordpress apache port is 80, in the container expose port 80…
-
2
votes3
answers91
viewsA: By generating a Docker container, are we lifting a virtual linux passkey in the background?
The Linux kernel has been working for decades and the isolation Features consist of the kernel "lying" to the running process in various ways. Container In a container, the kernel tells the process…
-
0
votes1
answer71
viewsA: How multiple Docker containers meet the same URL (Microservices)
They do not answer directly. There is an intermediary, which can be a load Balancer or a reverse proxy. On a Docker deploy, you hardly use multiple ports, you usually only use ports 80 and 443 if…
-
0
votes1
answer143
viewsA: Doubts about the Repository - Anemic Model - MVC
The understanding of what the repository standard is and the statement that the Repository standard would make your entity anemic or more anemic is a misconception. The issue is the separation of…
-
2
votes1
answer55
viewsA: Can I use Nhibernate with Docker?
Henry, there is no problem with Nhibernate that prevents you from running with Windows Containers or Linux Containers, lately I have been running a lot with Docker on linux. Your scenario is in…
-
1
votes2
answers258
viewsA: How to update or choose a specific version of phpMyAdmin when using Docker-Compose.yml?
Every image is defined by [Owner]/[repository]:[tag], the library images (official images) do not have Owner. When we delete the tag, we automatically tell the Docker that we should take the…
-
13
votes4
answers1103
viewsA: What is the Kubernetes?
On a Docker-based infrastructure, managing a single server, or 2 servers, is a simple task. But there are scenarios where you have hundreds or even thousands of servers, and the decisions that need…
-
1
votes1
answer118
viewsA: Docker name resolution
1) You probably only have containers, in one machine. 2) Making any tethering by container IP is not sound for Docker infrastructure. 3) Each container has its own IP, different from the host IP.…
-
0
votes1
answer69
viewsA: Injection of Dependencies Layers Application / Domain / Repository
At the beginning of your text you ask "Who" could inject the dependency into a class. Dependency injection is the role of dependency injection infrastructure. In a dependency graph - "A" depends on…
-
5
votes2
answers6011
viewsA: What is the meaning and form of volume use in Dockerfile?
On the dockerfile the volumes tell Ocker the mounting points in the containers created from the image you are building (with dockerfile). This allows Docker to dynamically allocate volumes, or to…
-
0
votes1
answer137
viewsA: Error uploading mysql container (with volume)
You probably overwritten a Mysql system folder and not the data folder. At first the error ... mysql_teste | 2018-01-21 22:37:02 7ff0031ee740 InnoDB: Operating system error number 22 in a file…
-
2
votes2
answers390
viewsA: Why use Docker in Azure?
Regardless of the previous one, computational density is something desired. It is not optimized, or improved, for security reasons. With thin isolation tapped by Ocker, it is possible to increase…
-
0
votes2
answers584
viewsA: Doubt regarding the structure of the Docker-Compose.yml file
The files of the Docker Compose follow the following logic: 1) The files are analyzed in depth and not from top to bottom, this means that you can change the order of things, be it first Networks…
-
1
votes1
answer385
viewsA: remove files from the container after build. Can I do this?
Multi-stage builds is a Docker Feature designed exactly for this scenario, however it does something slightly different. Instead of removing files, you just copy the binary files to the last stage,…
-
0
votes2
answers172
viewsA: how to ignore a line in dockerfile using dockerignore?
You cannot ignore a line from a dockerfile unless it is commented on. Comments are made with #.
-
0
votes1
answer63
viewsA: How to run a Docker container with private Ownership?
Ownership is an exclusive Portainer configuration. The most you can do in this type of automation is with the use of Abels, but what you can do is work under the security aspect, you can only hide…
-
0
votes2
answers1060
viewsA: Doubts about the Docker-Compose and Dockerfile configuration
In Docker each container by default has a network interface, virtual and own. This means that each container gets an internal IP. EXPOSE is metadata that explains to consumers that their application…
-
1
votes2
answers423
viewsA: How do D-Ocker respond to a domain that does not exist in /etc/hosts?
What you are trying to do is not possible without you creating some kind of script that does recurring searches on Docker to create your host’s hosts file configuration. When we talk about…
-
0
votes2
answers2564
viewsA: Doubt about marking "volumes" inside the Docker-Compose.yml
While it is common to leave this information at the end, the order really is indifferent. The main elements (which are at the root of yaml) Networks and Volumes are used to specify resources,…
-
1
votes1
answer1182
viewsA: Doubts about communication between containers
The link simply represents an entry into the HOSTS of your container. As the link information goes to the container metadata, whenever you go up this container Docker discovers the correct IP of the…
-
0
votes1
answer186
viewsA: How to activate all virtual hosts in a Docker container
Based on your Docker-Compose, web views your mysql instance by the name "mysql". OBS: Its definition of: ports: - 3306:3306 in mysql, it is only useful for you to host access mysql, whether with…
-
1
votes1
answer873
viewsA: The operation of Docker Network
The network on Docker is not so complex. It is a subnet within your server. With the bind you set up a specific port, this is useful for your machines outside of the Docker’s internal network.…
-
2
votes1
answer296
viewsA: Docker - Redirect DNS to another DNS
Yes, there are some network layer configuration parameters that make this type of task trivial. I will base the Docker run, but everything you say is available in Docker create and also in…
-
1
votes1
answer213
viewsA: Set port automatically Docker
If your project’s Dockerfile exposes a port, simply use Docker -P instead of -p porta:porta so Docker can dynamically store any valid port when creating the container. When we are in a…
-
1
votes2
answers183
viewsA: Docker Compose image container
The first step in Docker-Compose is to create the network, the second step is in each of the containers described in Compose, specifying the use of that network. From this point you can reference…
-
1
votes2
answers302
viewsA: Should I create a container for each site/app or can I put them all in the same one?
If you are thinking of good practices, yes, each site in a container. This so that you actually benefit from the isolation, and ensure that one does not impact the other, and can monitor and isolate…
-
0
votes2
answers485
viewsA: Network interfaces on Docker
To do this you need a Virtualbox bridge network. However, by not using Docker for Windows you will have an additional job that consists of manually setting up port forwarding between your host and…
dockeranswered Luiz Carlos Faria 917 -
3
votes2
answers6306
viewsA: What is salt when it comes to password encryption?
salt is the addition of characters, words, terms or even numbers that give a certain randomness to algorithms and help make them indecipherable. To illustrate I will consider, here, the inversion of…
-
-1
votes2
answers997
viewsA: How to enable php extensions inside a Docker container
The best way to make a configuration in a container is to re-generate an image with the correct configuration. You can do this by creating a new INI file, which enables its extension, while on…
-
2
votes2
answers372
viewsA: Docker remote management
Docker monitoring can be done with Datadog. Management can be done with Dockercloud or Rancher, centrally. From your perspective of deploying containers to your customers, there are some aspects to…
dockeranswered Luiz Carlos Faria 917 -
1
votes2
answers321
viewsA: Friendly url between containers/Docker images
Docker only forwards ports. A url-based distribution is a capability served by webservers and load balancers. Nginx, or Haproxy are excellent options for making this type of distribution. Both are…
dockeranswered Luiz Carlos Faria 917 -
0
votes2
answers710
viewsA: Webservices with C#, make-up
Most of the time, there is a static alternative to the issue, just renegotiate the API contract with the consumer. When this is not possible, you can opt for static structures with dynamic data…
-
1
votes1
answer383
viewsA: Serialization - Webapi for WCF with base type property (Abstract)
You followed the right steps, probably forgot the other parts. 1) You have analyzed WCF a little in isolation. There is no difference in behavior, what works with Wcftestclient, works anywhere. But…
-
13
votes4
answers9003
viewsA: Best way to deal with Exceptions
Regarding Exceptions in . Net you need to understand the following: Try/Catch Try/Catch means: Try, and Treat. If your code does not have a specific treatment for the exception, do not treat it. But…
-
0
votes3
answers1456
viewsA: Encapsulate values returned by JSON within a single object
You will need to create a new ActionResultto do this. I have done in the past a JsonVariableResult who did what you wanted, but with the webapi and news in Framework ended up deleting the code. So…