Git Product home page Git Product logo

Comments (12)

sameersbn avatar sameersbn commented on July 21, 2024

@AKoetsier This could be something to do with your proxy configuration

from docker-redmine.

AKoetsier avatar AKoetsier commented on July 21, 2024

@sameersbn This happens within the nginx in the docker, not in my own nginx outside the docker or something like that. Strange thing is it only occurs on one of my workstations (ubuntu 14.10) and not on my servers (ubuntu 14.04).

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@AKoetsier do you by any chance have selinux enabled.

from docker-redmine.

AKoetsier avatar AKoetsier commented on July 21, 2024

@sameersbn No selinux.

from docker-redmine.

naag avatar naag commented on July 21, 2024

We see the same issue with nginx accessing a Unix socket in our docker containers (nginx + unicorn in the same container) on Ubuntu 14.10, but not Ubuntu 14.04. As a workaround, try disabling the AppArmor profile for docker via aa-disable /etc/apparmor.d/docker, then restart the docker container. Interestingly, aa-complain ... is not enough.

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@AKoetsier This might have something to do with 14.10 then. I have see similar issue while using containerized nginx (as a proxy) which talks to an upstream application. There it is a selinux issue. My quickfix there was to not run nginx containerized and then add the required selinux filters.

from docker-redmine.

vabue avatar vabue commented on July 21, 2024

Same issue on 14.04

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@vabue Make sure that iptables is enabled. When docker starts a container, it adds iptables rules for the port forwarding to function. This means that iptables is required to to enabled for this configuration to be effective.

from docker-redmine.

vabue avatar vabue commented on July 21, 2024

Iptables is ok. Disabling apparmor for docker helped.

from docker-redmine.

alex-petrenko avatar alex-petrenko commented on July 21, 2024

When I disable apparmor for docker like aa-disable /etc/apparmor.d/docker my containers do not start anymore:

Error response from daemon: Cannot start container database: set apparmor profile docker-default: no such file or directory FATA[0000] Error: failed to start one or more containers

What do I do?

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

not sure what the issue is. can you read up on moby/moby#14396 to see if anything applies to your setup?

p.s. i used 14.04, with docker installed from official docker repos with apparmor, iptables, etc. enabled as default and have not seen this issue ever.

from docker-redmine.

frank-dspeed avatar frank-dspeed commented on July 21, 2024

i close this any subscriber can reopen if that still happens thanks to all

from docker-redmine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.