I have a server which contains a python file that connects to two external MySQL DB’s. One of those DB’s can be easily reached while the other server requires that IP’s be whitelisted in order to have access to that DB. That server’s IP is already whitelisted and works as intended when ran. The problem arises however when I attempt
Tag: docker-compose
Docker run error – Failed to find Flask application or factory in module “app”. Use “FLASK_APP=app:name to specify one
trying to dockerize this flask app… running the following docker build –tag flask-website . works, output successfully built, successfully tagged. edit: the next command works ok, so then I run curl localhost:5000 which gives this error ok straight forward enough, so then I try this docker-compose up and this results however trying to navigate to localhost:5000 I get directory structure
docker-compose throwing “ModuleNotFoundError” with pandas
I am trying to containerize a very simple Flask API that connects to mongodb. For the API’s output, I am using the pandas module. However, when I run ‘docker-compose up’, I get the following error: app_1 | Traceback (most recent call last): app_1 | File “app.py”, line 6, in app_1 | import pandas as pd app_1 | ModuleNotFoundError: No module
Why use requirements.txt in a Docker image
There is a similar question from last year but I don’t think the responses are widely applicable and it’s not accepted. Edit: this is in the context of developing small jobs that will only be run in docker in-house; I’m not talking about sharing work with anyone outside a small team, or about projects getting heavy re-use. What advantage do
Error building my web application using Docker
I am a newbie using Docker, I have completed my web application in Django, and I want to containerize it using Docker. I have gone through a particular tutorial where an existing web application was dockerized successfully but when I tried the same method, I got an error which says Failed to execute script docker-compose error logs Dockerfile docker-compose.yml Answer
docker hub do you create a repository for every image
I am new to docker and docker hub. I am trying to understand the repository on docker hub. I have dockerized a django web app using nginx and gunicorn. My question is: Since this has multiple images within the container: would each image be a different repository on docker hub or would it be in the same repository, but with
How to check the status of docker-compose up -d command
When we run docker-compose up-d command to run dockers using docker-compose.yml file, it starts building images or pulling images from the registry. We can see each and every step of this command on the terminal. I am trying to run this command from a python script. The command starts successfully but after the command, I do not have any idea