I have several Microservices that each have a separate Docker container. It is in CS 2017, Docker Desktop for Windows. These services are talking each other using IP address that Docker assigned. The problem is that in Debug mode the project in Visual studio every time I change something and build the project the IP of docker is changing so I have to go through the code and change the IP, is there anyway to have a fix the IP or use static IP?
Fix IP for Docker
441 Views Asked by nik At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in DOCKER
- Docker, redirecting to virtualbox port
- Collect only from STDERR when using Docker syslog logging driver
- How can I create a docker image from the current system?
- Moving Docker Containers Around
- How can I test with serverspec that Jenkins is running in a jenkins docker container?
- How to deploy django 1.8 on Elastic Beanstalk using Docker
- Emulating `docker run` using the golang docker API
- Where are docker images and containers stored when we use it with Windows?
- docker compose, vagrant and insecure Repository
- Commit data in a mysql container
- oh-my-zsh installation returns non zero code
- Use custom docker binary in CoreOS
- Can I use docker image ubuntu 14.04 if my host is 12.04?
- Hide/obfuscate environmental parameters in docker
- How to add initial users when starting a RabbitMQ Docker container?
Related Questions in DOCKER-FOR-WINDOWS
- Docker log (driver json-file) location for Docker for windows
- Docker Windows to windows volume on network drive
- How to use windows authentication with SQL server docker container
- Sync folder in docker image from Jhipster
- Change "hosts" / "-h" Docker for Windows in daemon.json
- Can't build ASP.Net container
- Limitations of Windows containers for localhost and published ports
- How do I Connect from Host to Cassandra using Docker Desktop for Windows
- Fix IP for Docker
- Docker Run command hangs without any error
- Error "Failed to OpenForBackup failed in Win32" when pulling microsoft/nanoserver container with non-system drive data-root
- Docker pull image save path
- docker: Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: EOF
- Docker unable to find image locally
- Can't connect to DB located in docker container
Related Questions in DOCKER-DESKTOP
- Docker log (driver json-file) location for Docker for windows
- Why can't apache communicate with php-fpm in separate containers using Docker Desktop for Windows?
- Change "hosts" / "-h" Docker for Windows in daemon.json
- How do I Connect from Host to Cassandra using Docker Desktop for Windows
- Fix IP for Docker
- Docker Run command hangs without any error
- How to set up a cron job on Docker Desktop for Windows?
- Is there an equivalent of host.docker.internal for Kubernetes cluster running as part of Windows Docker Desktop
- How do I measure my pods startup, min and max CPU and Memory
- docker rm doesn't respond and only option is to restart docker desktop
- Which WSL distro is using AppData\Local\Docker\wsl\data\ext4.vhdx after docker-desktop-data was exported and unregistered
- Docker desktop for Mac: bind to tcp port
- How to run an iptables command for docker for windows when using WSL2
- dotnet restore error on linux container in docker corporate environment in vpn
- Docker Redis: Version "6.0.8" in ".\docker-compose.yml" is invalid
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should create a network for your project
Then when you run you docker containers give each of them a name
Now other services also using same method. Now each service can reach other using the the name