-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-ce 19.03: domainname denied if userns enabled #743
Comments
Thanks for reporting. This seems to be the case because sysctls get applied after the userns is setup? |
Yes, this looks like a runc bug -- however I'm fairly sure the issue is not that it's done after the userns is setup but instead that it's done before it's setup. To write to I'll take a look at this. opencontainers/runc#2091 is the tracking issue I opened for it. |
Just ran into this with the gitlab image after upgrading docker to the version OP has. Are there no other workaround other than either disabling namespaces or downgrading docker? |
I don't think an image can have the domain encoded in it. So you could also
just not art domain name on your container.
On Sat, Aug 24, 2019 at 08:11 Ingmars Melkis ***@***.***> wrote:
Just ran into this with the gitlab image after upgrading docker to the
version OP has.
Are there no other workaround other than either disabling namespaces or
downgrading docker?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#743?email_source=notifications&email_token=AAGDCZQJGQ53CP2NWHFQVHTQGFFTDA5CNFSM4IHRJXRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CB7XI#issuecomment-524558301>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGDCZVUCANKWAX5XRSTOTTQGFFTDANCNFSM4IHRJXRA>
.
--
- Brian Goff
|
I'm using a simple docker-compose and I never even knew that setting a domain name is possible. I don't know what's setting it, but I'm not setting it manually. |
Can you post an example of your compose yaml?
On Sat, Aug 24, 2019 at 09:54 Ingmars Melkis ***@***.***> wrote:
I'm using a simple docker-compose and I never even knew that setting a
domain name is possible. I don't know what's setting it, but I'm not
setting it manually.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#743?email_source=notifications&email_token=AAGDCZRMEAV5GH263DDMNETQGFRTRA5CNFSM4IHRJXRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CDXQQ#issuecomment-524565442>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGDCZXTCRNHMSFMTP2OUVDQGFRTRANCNFSM4IHRJXRA>
.
--
- Brian Goff
|
The only thing that I can think of is hostname doing the same thing as domainname. If anything, domainname is so poorly documented that I still have no idea what exactly it sets. |
It's set via the "hostname" parameter.
On Sat, Aug 24, 2019 at 10:04 Ingmars Melkis ***@***.***> wrote:
version: '2.3'
services:
web:
mem_limit: 4g
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: '<hostname>'
environment:
GITLAB_OMNIBUS_CONFIG: | (...)
ports:
- '127.0.0.1:8000:8181'
- '127.0.0.1:2222:22'
volumes:
- '/var/log/gitlab/:/var/log/gitlab'
- '/var/www/gitlab/data/:/var/opt/gitlab'
The only thing that I can think of is hostname doing the same thing as
domainname. If anything, domainname is so poorly documented that I still
have no idea what exactly it sets.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#743?email_source=notifications&email_token=AAGDCZVPZQZAGNURKTU2F73QGFS2XA5CNFSM4IHRJXRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5CD4WI#issuecomment-524566105>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGDCZS4ALF5AUHHFBUJKI3QGFS2XANCNFSM4IHRJXRA>
.
--
- Brian Goff
|
Hello from 2020 here. This is still the problem with
|
Same is apparently true for Docker 20.10
|
I observed this problem on proxmox/unprivileged LXC container with Docker (in my case, Gitlab via docker-compose)
Solved by simply removing/commenting
It works flawlessly without Note that I have a reverse proxy (nginx) configured. |
I had to remove both |
any news on this ? |
Bumping this since it's still an issue. |
Seeing this on 26.0.2 as well |
Expected behavior
When docker is user-namespace enabled, starting a container with
docker run -ti --domainname my.domain debian /bin/bash
should work.Actual behavior
docker run fails with:
Info: it worked on docker-ce version 18.09 and 18.03
Steps to reproduce the behavior
Run docker-daemon with 'userns-remap' = 'default'
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
docker-ce is running on a physical server.
It is running with the following daemon-options:
subuid/subgid:
The text was updated successfully, but these errors were encountered: