Questions tagged docker

Explore the latest questions and answers asked by our top developers.

How to solve the issue of docker as I am getting error while switching to Linux Container?

I have docker linux container issue, below is the error Unable to create: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer ‘Computer_name’ because the object was not found. The object might have been deleted. Verify that […]

By Akram
Published
Categorised as docker

Traefik config with docker

I’m trying to use traefik in my docker-compose file. My php app is listening on port 8000 version: ‘3’ services: traefik: image: traefik:1.7.4 container_name: traefik-${PROJECT_NAME} ports: – ${TRAEFIK_PORT}:80 – ${TRAEFIK_PORT_HTTPS}:443 – ${TRAEFIK_DASHBOARD_PORT}:8080 volumes: – ./traefik/traefik.toml:/etc/traefik/traefik.toml – /var/run/docker.sock:/var/run/docker.sock networks: – webgateway php-fpm: build: context: . dockerfile: Dockerfile-php container_name: php-fpm-${PROJECT_NAME} ports: – 8000 working_dir: /var/www/html/ volumes: – […]

By Kevin
Published
Categorised as docker, docker-compose, traefik

Unable to join peers to channel in Hyperledger First Network setup

I am following a tutorial on the Hyperledger fabric site and after installing all the perquisites (latest versions) on a Linux 18.04 installation I run into an error. I am trying to run the given ./byfn script to “Build Your First Network”. After a fresh install I run the commands as follows: ./byfn generate ./byfn […]

By Rens van der Veldt
Published
Categorised as docker, docker-compose, hyperledger, hyperledger-fabric

Docker compose in another directory affects other containers

I have an issue. I used my docker-compose file for one project. Then I copied it to another directory in order to run another containers. But whenever I do that it recreates existing containers or in case I use the down command it also destroys containers from another directory, what could be wrong? Here is […]

By Anthony B Rhoden
Published
Categorised as docker, docker-compose

Elastic Search start after run my other services

Guys i got a little trouble with the docker-compose when I started the Elastic Search service. I need to wait the elastic search start and be able to receive the request, but it take a long time to do it. So here is my docker-compose file. I wanna start the other services when the ES […]

:8080 frontend POST to :5000 flask backend blocked by CORS (docker-compose)

I have my frontend and backend running in separate containers. I can access both, however, when trying to perform a POST from the React frontend -> Flask backend, I get blocked by CORS. Access to fetch at ‘http://localhost:5000/api/upload‘ from origin ` ‘http://localhost:8080‘ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the […]

By vercingortix
Published
Categorised as cors, docker, flask, python

how can a docker container on 2 subnets access the internet? (using docker-compose)

I have a container with 2 subnets: one is the reverse proxy subnet the second one is the internal subnet for the different containers of that project The container needs to access an external SMTP server (on mailgun.com), but it looks like, with docker-compose, you can put a container on both one or more subnets […]

By Thomas
Published
Categorised as docker, docker-compose, docker-networking

Getting "/usr/bin/python: No module named" whenever I run the Docker container

I have a flask API alongside with another class for Machine learning prediction that I need to dockerize so I have a Dockerfile as shown below. I run the container using sudo docker run -d -p 5000:5000 test However every-time I run it, it crashes. I can see that the status of it “Exited (1)” […]

By
Published
Categorised as deployment, docker, dockerfile, flask, python-3.6

Sinatra::Reloader not reloading files in Docker container

I’m trying to setup a simple sinatra app in a Docker container. I’ve setup modular Sinatra app on rack with config.ru: require ‘rubygems’ require ‘sinatra’ require “sinatra/reloader” Dir[File.dirname(__FILE__) + ‘/controllers/*.rb’].each {|file| require file} #map controllers map(‘/’) {run WebController} Single controller /controllers/hello.rb: class WebController < Sinatra::Base register Sinatra::Reloader get ‘/’ do “Hello World” end get ‘/test’ […]

By Struki84
Published
Categorised as docker, ruby, sinatra

Docker: http requests from a container to other stalled

I use VPS for testing my web apps online. And I use Docker to run many web apps in the same server. Here is my docker-compose.yml version: “3.7” services: gateway: build: context: ./gateway dockerfile: Dockerfile restart: always ports: – 80:3000 networks: erealm: ipv4_address: 10.5.0.2 db: image: mysql/mysql-server:5.5 restart: always environment: MYSQL_ROOT_PASSWORD: 4lf483t0 networks: erealm: ipv4_address: […]

By Ed de Almeida
Published
Categorised as docker, express, fetch, http, node.js
1 4,729 4,730 4,731 4,732 4,733 4,810

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq