Relative Content

Tag Archive for pythondockercontainers

Only one version works after deploying different versions of apps in docker container

I am trying to deploy different versions of apps to docker so that users can pickup the version they want to use. For example, I have two apps (programs-v1.0.0 and programs-v1.2.0) docker containers running on localhost, the one with port 8000 call be called without problem while the one with port 8080 cannot be called through the python script. There is no problem running both versions in interactive mode so I assume there is nothing wrong with the docker containers. I already changed the IP and port in python script for this service but don’t know why programs-v1.2.0 cannot be called while program-v1.0.0 works fine. Any suggestions? Thanks.

Auto-Formatting when saving a file and running a file

Whenever I save my file, one specific line of code is auto-indented. Whenever I run my file this line of code is also auto-indented. The video shows this. The weird thing is that basically the same code on line 20 is not auto formatted.