profile
viewpoint
Huang.Liang huangliang1203 Shanghai full stack developer

startedopenvswitch/ovs

started time in 17 hours

startedprojectcalico/felix

started time in 17 hours

startedKevin-fqh/learning-k8s-source-code

started time in 20 hours

startedrexray/rexray

started time in 2 days

startedopenebs/openebs

started time in 2 days

starteddev-sec/cis-kubernetes-benchmark

started time in 2 days

starteddev-sec/ansible-os-hardening

started time in 2 days

startedoVirt/ovirt-engine

started time in 3 days

startedtalos-systems/talos

started time in 3 days

startedjamiemccrindle/portletbridge

started time in 5 days

issue closedmoby/moby

Occasionally the file permission is not expected in the container where the image has the command `RUN chown`

<!-- If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.

If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.

For more information about reporting issues, see https://github.com/moby/moby/blob/master/CONTRIBUTING.md#reporting-other-issues


GENERAL SUPPORT INFORMATION

The GitHub issue tracker is for bug reports and feature requests. General support for docker can be found at the following locations:

  • Docker Support Forums - https://forums.docker.com
  • Slack - community.docker.com #general channel
  • Post a question on StackOverflow, using the Docker tag

General support for moby can be found at the following locations:

  • Moby Project Forums - https://forums.mobyproject.org
  • Slack - community.docker.com #moby-project channel
  • Post a question on StackOverflow, using the Moby tag

BUG REPORT INFORMATION

Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST -->

Description

<!-- Briefly describe the problem you are having in a few paragraphs. --> there is the command RUN chown in the Dockerfile. after the docker images is built, the file permission is not expected when container is being spinned up

Steps to reproduce the issue: below is the content of my Dockerfile

# Pull base image.
FROM python:2.7-slim


WORKDIR /app

#have to execute https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
RUN mkdir -p /usr/share/man/man1

RUN apt-get update \
    && apt-get install -y --no-install-recommends openssl ca-certificates-java\
    && rm -rf /var/lib/apt/lists/*

RUN mkdir -p ./warehouse
RUN groupadd --gid 10000 jenkins \
  && useradd --uid 10000 --gid jenkins --shell /bin/bash --create-home jenkins
RUN chown -R 10000:10000 ./warehouse

Describe the results you received:

root@53110115eb35:/app# ls -lrta
drwxr-xr-x 1 root root 4096 Mar 19  2019 warehouse
drwxr-xr-x 1 root root 4096 Mar 19  2019 .
drwxr-xr-x 1 root root 4096 Nov  5 05:24 ..

Describe the results you expected:

root@53110115eb35:/app# ls -lrta
drwxr-xr-x 1 jenkins jenkins 4096 Mar 19  2019 warehouse
drwxr-xr-x 1 root root 4096 Mar 19  2019 .
drwxr-xr-x 1 root root 4096 Nov  5 05:24 ..

Additional information you deem important (e.g. issue happens only occasionally): issue happens only occasionally

Output of docker version:

Client:
 Version:           18.06.2-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        6d37f41
 Built:             Sun Feb 10 03:47:56 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.2-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       6d37f41
  Built:            Sun Feb 10 03:46:20 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Output of docker info:

Containers: 34
 Running: 19
 Paused: 0
 Stopped: 15
Images: 29
Server Version: 18.06.2-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: a592beb5bc4c4092b1b1bac971afed27687340c5 (expected: 69663f0bd4b60df09991c08812a60108003fa340)
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.18.0-1024-azure
Operating System: Ubuntu 18.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.766GiB
Name: azwusdbotpr02
ID: ZRXR:44FE:MW53:PCXH:QS23:HIBJ:WT2H:DE2P:WCQN:44SX:P6SU:SNJL
Docker Root Dir: /data/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
WARNING: IPv4 forwarding is disabled

Additional environment details (AWS, VirtualBox, physical, etc.): uname -a

Linux my-hostname 4.18.0-1024-azure #25~18.04.1-Ubuntu SMP Fri Jun 28 23:27:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic

closed time in 7 days

huangliang1203

issue commentmoby/moby

Occasionally the file permission is not expected in the container where the image has the command `RUN chown`

Tried with 19.03.4 with the above Dockerfile, it works.

root@XXXX:/tmp/test# docker run --rm test ls -la
total 0
drwxr-xr-x 1 root    root    23 Nov  5 20:36 .
drwxr-xr-x 1 root    root     6 Nov  5 20:37 ..
drwxr-xr-x 1 jenkins jenkins  6 Nov  5 20:36 warehouse

Server Version: 19.03.4 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Native Overlay Diff: tru

huangliang1203

comment created time in 7 days

issue commentmoby/moby

Occasionally the file permission is not expected in the container where the image has the command `RUN chown`

Can you try 19.03? Does this happen with --storage-driver=vfs?

Thanks @AkihiroSuda, very appreciate your response. I will try it out in our environment

huangliang1203

comment created time in 7 days

startedjetstack/tarmak

started time in 7 days

startedkubernauts/tk8

started time in 7 days

fork huangliang1203/free-books

Save and share some of my favorite books.

fork in 7 days

startedmozilla/sops

started time in 7 days

startedanchore/anchore-engine

started time in 7 days

startedgorakhargosh/watchdog

started time in 7 days

startedDataDog/datadog-agent

started time in 7 days

startedkubernetes/node-problem-detector

started time in 8 days

startedaquasecurity/kube-hunter

started time in 8 days

startedaquasecurity/microscanner

started time in 8 days

startedcoreos/clair

started time in 8 days

startedcloudnativedevops/demo

started time in 8 days

startedbloomberg/powerfulseal

started time in 8 days

startedlinki/chaoskube

started time in 8 days

startedasobti/kube-monkey

started time in 8 days

issue openedmoby/moby

Occasionally the file permission is not expected in the container where the image has the command `RUN chown`

<!-- If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.

If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.

For more information about reporting issues, see https://github.com/moby/moby/blob/master/CONTRIBUTING.md#reporting-other-issues


GENERAL SUPPORT INFORMATION

The GitHub issue tracker is for bug reports and feature requests. General support for docker can be found at the following locations:

  • Docker Support Forums - https://forums.docker.com
  • Slack - community.docker.com #general channel
  • Post a question on StackOverflow, using the Docker tag

General support for moby can be found at the following locations:

  • Moby Project Forums - https://forums.mobyproject.org
  • Slack - community.docker.com #moby-project channel
  • Post a question on StackOverflow, using the Moby tag

BUG REPORT INFORMATION

Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST -->

Description

<!-- Briefly describe the problem you are having in a few paragraphs. --> there is the command RUN chown in the Dockerfile. after the docker images is built, the file permission is not expected when container is being spinned up

Steps to reproduce the issue: below is the content of my Dockerfile

# Pull base image.
FROM python:2.7-slim


WORKDIR /app

#have to execute https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
RUN mkdir -p /usr/share/man/man1

RUN apt-get update \
    && apt-get install -y --no-install-recommends openssl ca-certificates-java\
    && rm -rf /var/lib/apt/lists/*

RUN mkdir -p ./warehouse
RUN groupadd --gid 10000 jenkins \
  && useradd --uid 10000 --gid jenkins --shell /bin/bash --create-home jenkins
RUN chown -R 10000:10000 ./warehouse

Describe the results you received:

root@53110115eb35:/app# ls -lrta
drwxr-xr-x 1 root root 4096 Mar 19  2019 warehouse
drwxr-xr-x 1 root root 4096 Mar 19  2019 .
drwxr-xr-x 1 root root 4096 Nov  5 05:24 ..

Describe the results you expected:

root@53110115eb35:/app# ls -lrta
drwxr-xr-x 1 jenkins jenkins 4096 Mar 19  2019 warehouse
drwxr-xr-x 1 root root 4096 Mar 19  2019 .
drwxr-xr-x 1 root root 4096 Nov  5 05:24 ..

Additional information you deem important (e.g. issue happens only occasionally): issue happens only occasionally

Output of docker version:

Client:
 Version:           18.06.2-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        6d37f41
 Built:             Sun Feb 10 03:47:56 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.2-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       6d37f41
  Built:            Sun Feb 10 03:46:20 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Output of docker info:

Containers: 34
 Running: 19
 Paused: 0
 Stopped: 15
Images: 29
Server Version: 18.06.2-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: a592beb5bc4c4092b1b1bac971afed27687340c5 (expected: 69663f0bd4b60df09991c08812a60108003fa340)
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.18.0-1024-azure
Operating System: Ubuntu 18.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.766GiB
Name: azwusdbotpr02
ID: ZRXR:44FE:MW53:PCXH:QS23:HIBJ:WT2H:DE2P:WCQN:44SX:P6SU:SNJL
Docker Root Dir: /data/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
WARNING: IPv4 forwarding is disabled

Additional environment details (AWS, VirtualBox, physical, etc.): uname -a

Linux my-hostname 4.18.0-1024-azure #25~18.04.1-Ubuntu SMP Fri Jun 28 23:27:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic

created time in 9 days

startedlonghorn/longhorn

started time in 13 days

starteddbeaver/dbeaver

started time in 13 days

startedjamiehannaford/what-happens-when-k8s

started time in 14 days

startedjpetazzo/pipework

started time in 14 days

startedshadowsocks/ChinaDNS

started time in 15 days

PR opened sameyes911/bookinfo-productpage

.
+3 -1

0 comment

1 changed file

pr created time in 17 days

PR opened sameyes911/azure-vote-sam

.
+3 -1

0 comment

1 changed file

pr created time in 17 days

push eventhuangliang1203/bookinfo-productpage

lianghuang

commit sha a487b3b476082c88b611425de9999a8045b81ff2

.

view details

push time in 17 days

push eventhuangliang1203/azure-vote-sam

lianghuang

commit sha 3908b39524beb32e28917c175f3837e0a7f4885f

.

view details

push time in 17 days

PR opened sameyes911/bookinfo-productpage

.
+37 -5

0 comment

2 changed files

pr created time in 17 days

push eventhuangliang1203/bookinfo-productpage

lianghuang

commit sha 92416e739712bd40ba9fce7862af72ac0a90d8cc

.

view details

push time in 17 days

PR opened sameyes911/azure-vote-sam

fix
+37 -6

0 comment

2 changed files

pr created time in 17 days

push eventhuangliang1203/azure-vote-sam

lianghuang

commit sha dda468af55d848100045078b9f6786d7cfcc74db

fix

view details

push time in 17 days

push eventhuangliang1203/bookinfo-productpage

sameyes911

commit sha 7c484f47933d9604354bc9a4ab48d4ce000d1111

Merge pull request #3 from huangliang1203/master fix

view details

push time in 17 days

startedfabric8io/kubernetes-client

started time in 17 days

pull request commentsameyes911/azure-vote-sam

fix

1

huangliang1203

comment created time in 17 days

PR opened sameyes911/bookinfo-productpage

fix
+29 -0

0 comment

1 changed file

pr created time in 17 days

push eventhuangliang1203/bookinfo-productpage

lianghuang

commit sha 993aa556214bbeaee05dfe010a535b72bbfe6d7b

.

view details

sameyes911

commit sha 77c840b84a9b41e967f4022b9193329942e1fced

Merge pull request #1 from huangliang1203/sammy first patch

view details

lianghuang

commit sha c3dd8ce0f156e37cd2b9bb2b6991deb25a8c7db9

fix

view details

sameyes911

commit sha 06e51173a56e35ac49d6b0d7a73e47eb2e0576b9

Merge pull request #2 from huangliang1203/sammy fix

view details

lianghuang

commit sha 9b9815ad6bb606fb009f7cc0fdff5ed245d54d7d

fix

view details

lianghuang

commit sha 8530098fe28e7a3a1c3c41a0f9083f06c643a0c2

Merge remote-tracking branch 'remotes/origin/master' into sammy

view details

push time in 17 days

push eventhuangliang1203/bookinfo-productpage

sameyes911

commit sha 77c840b84a9b41e967f4022b9193329942e1fced

Merge pull request #1 from huangliang1203/sammy first patch

view details

sameyes911

commit sha 06e51173a56e35ac49d6b0d7a73e47eb2e0576b9

Merge pull request #2 from huangliang1203/sammy fix

view details

lianghuang

commit sha 8530098fe28e7a3a1c3c41a0f9083f06c643a0c2

Merge remote-tracking branch 'remotes/origin/master' into sammy

view details

push time in 17 days

PR opened sameyes911/azure-vote-sam

fix
+5 -7

0 comment

2 changed files

pr created time in 17 days

push eventhuangliang1203/bookinfo-productpage

lianghuang

commit sha 9b9815ad6bb606fb009f7cc0fdff5ed245d54d7d

fix

view details

push time in 17 days

push eventhuangliang1203/azure-vote-sam

lianghuang

commit sha 0b12b0ba869f7f123942ea43cbf5b87372bfca51

fix

view details

push time in 17 days

PR opened sameyes911/azure-vote-sam

depoyment.yaml
+31 -0

0 comment

1 changed file

pr created time in 17 days

PR opened sameyes911/bookinfo-productpage

fix
+40 -0

0 comment

2 changed files

pr created time in 17 days

push eventhuangliang1203/bookinfo-productpage

lianghuang

commit sha c3dd8ce0f156e37cd2b9bb2b6991deb25a8c7db9

fix

view details

push time in 17 days

push eventhuangliang1203/azure-vote-sam

lianghuang

commit sha 1bd24d14db2db0d3ac76098253fec44a40e9dce7

depoyment.yaml

view details

push time in 17 days

PR opened sameyes911/azure-vote-sam

remove unnecessary part
+4 -2

0 comment

1 changed file

pr created time in 17 days

push eventhuangliang1203/azure-vote-sam

lianghuang

commit sha b1976783b3dd017a5826daf4cc556384ced5bf94

.

view details

push time in 17 days

PR opened sameyes911/azure-vote-sam

Jenkisnfile
+38 -0

0 comment

2 changed files

pr created time in 17 days

push eventhuangliang1203/azure-vote-sam

lianghuang

commit sha d391bae0038970dc301a8e4e48574ceda5f46bc8

Jenkisnfile

view details

push time in 17 days

startedwercker/stern

started time in 18 days

startedspf13/pflag

started time in 18 days

startedFairwindsOps/polaris

started time in 19 days

startedhjacobs/kube-ops-view

started time in 19 days

startedQihoo360/wayne

started time in 19 days

startedrsc/quote

started time in 19 days

push eventhuangliang1203/bookinfo-cd

lianghuang

commit sha ed2d13bed29a0d0da2b5b8b4e2792d11d1bd2ad2

.

view details

push time in 19 days

push eventhuangliang1203/bookinfo-cd

lianghuang

commit sha fb48edd3b086b3e4c2831e894ef024be36122466

update

view details

push time in 19 days

push eventhuangliang1203/bookinfo-cd

lianghuang

commit sha 1a70ff2ab8b29a44a230ae862c24a0f3340618bc

.

view details

push time in 19 days

push eventhuangliang1203/bookinfo-cd

lianghuang

commit sha 8e8c67abdbd4ab301b0fdee2766652b532dbd829

.

view details

push time in 19 days

create barnchhuangliang1203/bookinfo-cd

branch : master

created branch time in 19 days

created repositoryhuangliang1203/bookinfo-cd

created time in 19 days

startedjenkinsci/kubernetes-cd-plugin

started time in 20 days

startedahmetb/kubernetes-network-policy-recipes

started time in 20 days

startedGoogleContainerTools/jib

started time in 20 days

startedgenuinetools/img

started time in 20 days

startedGoogleContainerTools/kaniko

started time in 20 days

startedjenkinsci/kubernetes-operator

started time in 20 days

startedjenkinsci/kubernetes-plugin

started time in 20 days

create barnchhuangliang1203/bookinfo-productpage

branch : sammy

created branch time in 20 days

push eventhuangliang1203/bookinfo-productpage

Huang.Liang

commit sha 213b144991f1807a66de2a0e3fe3bc085e5d6f07

Update productpage.py

view details

push time in 20 days

startednlopes/slack

started time in 21 days

startedTheAlgorithms/Java

started time in 21 days

startedfacebookresearch/detectron2

started time in 23 days

startedAwesome-HarmonyOS/HarmonyOS

started time in 23 days

startedcaddyserver/caddy

started time in 24 days

startedprojectcontour/contour

started time in a month

startedmgp/book-notes

started time in a month

startedalibaba/oceanbase

started time in 2 months

startedspinnaker/orca

started time in 2 months

startedNetflix/chaosmonkey

started time in 2 months

push eventhuangliang1203/katacoda-scenarios

lianghuang

commit sha 94f4ac28133fe399e5aa85a993b96a2723e00a49

.

view details

push time in 2 months

push eventhuangliang1203/katacoda-scenarios

lianghuang

commit sha 4a1e345c4f21192552048f70e0bbb48722b5cf68

.

view details

push time in 2 months

push eventhuangliang1203/katacoda-scenarios

lianghuang

commit sha 711cc45c5c5b15ca657f5d42dce3d1e3927a87ec

.

view details

push time in 2 months

push eventhuangliang1203/katacoda-scenarios

lianghuang

commit sha 47b7fa3900b05e07b1b4f8745f1b44fda97748a8

.

view details

push time in 2 months

push eventhuangliang1203/katacoda-scenarios

lianghuang

commit sha 84186d0fa32529b10bded43214a21a6889728481

.

view details

push time in 2 months

push eventhuangliang1203/katacoda-scenarios

lianghuang

commit sha 85a4ab4f0e1361fe3479538aaafb4b32408a10e2

istio cni

view details

push time in 2 months

push eventhuangliang1203/katacoda-scenarios

lianghuang

commit sha fc5aaa937c339070c395ff56a999ebeaccf3b326

.

view details

push time in 2 months

more