Public bug reported:

Tested kernels:
Focal 5.4.0-31.35
Eoan 5.3.0-53.47

To reproduce:
1) Spin up a cloud image
2) snap install docker
3) auth_folder=/var/snap/docker/common/auth
4) mkdir -p $auth_folder
5) docker run --entrypoint htpasswd registry:2 -Bbn user passwd > 
$auth_folder/htpasswd
6) docker run -d -p 5000:5000 --restart=always --name registry \
  -v $auth_folder:/auth \
  -e "REGISTRY_AUTH=htpasswd" \
  -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
  -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
   registry:2

On a good kernel 'docker ps' shows something like:
# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED        
     STATUS              PORTS                    NAMES
a346b65b4509        registry:2          "/entrypoint.sh /etc…"   14 seconds ago 
     Up 12 seconds       0.0.0.0:5000->5000/tcp   registry

On a bad kernel:
 docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED        
     STATUS                        PORTS               NAMES
0322374f1b1d        registry:2          "/entrypoint.sh /etc…"   5 seconds ago  
     Restarting (2) 1 second ago                       registry

Note status 'Restarting' on the bad kernel.

This seems to be introduce by any of the following commits:
b3bdda24f1bc UBUNTU: SAUCE: overlayfs: fix shitfs special-casing
6f18a8434050 UBUNTU: SAUCE: overlayfs: use shiftfs hacks only with shiftfs as 
underlay
629edd70891c UBUNTU: SAUCE: shiftfs: record correct creator credentials
cfaa482afb97 UBUNTU: SAUCE: shiftfs: fix dentry revalidation

Kernels that don't have these commits seem fine.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu Eoan)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu Focal)
     Importance: Undecided
         Status: New

** Also affects: linux (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Eoan)
   Importance: Undecided
       Status: New

** Description changed:

- Affected kernels:
+ Tested kernels:
  Focal 5.4.0-31.35
  Eoan 5.3.0-53.47
  
  To reproduce:
  1) Spin up a cloud image
  2) snap install docker
  3) auth_folder=/var/snap/docker/common/auth
  4) mkdir -p $auth_folder
  5) docker run --entrypoint htpasswd registry:2 -Bbn user passwd > 
$auth_folder/htpasswd
  6) docker run -d -p 5000:5000 --restart=always --name registry \
-   -v $auth_folder:/auth \
-   -e "REGISTRY_AUTH=htpasswd" \
-   -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
-   -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
-    registry:2
+   -v $auth_folder:/auth \
+   -e "REGISTRY_AUTH=htpasswd" \
+   -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
+   -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
+    registry:2
  
  On a good kernel 'docker ps' shows something like:
  # docker ps
  CONTAINER ID        IMAGE               COMMAND                  CREATED      
       STATUS              PORTS                    NAMES
  a346b65b4509        registry:2          "/entrypoint.sh /etc…"   14 seconds 
ago      Up 12 seconds       0.0.0.0:5000->5000/tcp   registry
  
  On a bad kernel:
-  docker ps
+  docker ps
  CONTAINER ID        IMAGE               COMMAND                  CREATED      
       STATUS                        PORTS               NAMES
  0322374f1b1d        registry:2          "/entrypoint.sh /etc…"   5 seconds 
ago       Restarting (2) 1 second ago                       registry
  
  Note status 'Restarting' on the bad kernel.
  
  This seems to be introduce by any of the following commits:
  b3bdda24f1bc UBUNTU: SAUCE: overlayfs: fix shitfs special-casing
  6f18a8434050 UBUNTU: SAUCE: overlayfs: use shiftfs hacks only with shiftfs as 
underlay
  629edd70891c UBUNTU: SAUCE: shiftfs: record correct creator credentials
  cfaa482afb97 UBUNTU: SAUCE: shiftfs: fix dentry revalidation
  
  Kernels that don't have these commits seem fine.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1879690

Title:
  Docker registry doesn't stay up and keeps restarting

Status in linux package in Ubuntu:
  New
Status in linux source package in Eoan:
  New
Status in linux source package in Focal:
  New

Bug description:
  Tested kernels:
  Focal 5.4.0-31.35
  Eoan 5.3.0-53.47

  To reproduce:
  1) Spin up a cloud image
  2) snap install docker
  3) auth_folder=/var/snap/docker/common/auth
  4) mkdir -p $auth_folder
  5) docker run --entrypoint htpasswd registry:2 -Bbn user passwd > 
$auth_folder/htpasswd
  6) docker run -d -p 5000:5000 --restart=always --name registry \
    -v $auth_folder:/auth \
    -e "REGISTRY_AUTH=htpasswd" \
    -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
    -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
     registry:2

  On a good kernel 'docker ps' shows something like:
  # docker ps
  CONTAINER ID        IMAGE               COMMAND                  CREATED      
       STATUS              PORTS                    NAMES
  a346b65b4509        registry:2          "/entrypoint.sh /etc…"   14 seconds 
ago      Up 12 seconds       0.0.0.0:5000->5000/tcp   registry

  On a bad kernel:
   docker ps
  CONTAINER ID        IMAGE               COMMAND                  CREATED      
       STATUS                        PORTS               NAMES
  0322374f1b1d        registry:2          "/entrypoint.sh /etc…"   5 seconds 
ago       Restarting (2) 1 second ago                       registry

  Note status 'Restarting' on the bad kernel.

  This seems to be introduce by any of the following commits:
  b3bdda24f1bc UBUNTU: SAUCE: overlayfs: fix shitfs special-casing
  6f18a8434050 UBUNTU: SAUCE: overlayfs: use shiftfs hacks only with shiftfs as 
underlay
  629edd70891c UBUNTU: SAUCE: shiftfs: record correct creator credentials
  cfaa482afb97 UBUNTU: SAUCE: shiftfs: fix dentry revalidation

  Kernels that don't have these commits seem fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1879690/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to