however if it touch a file as root

root@8597d5502142:/# touch /tmp/toto
root@8597d5502142:/# ls -lh /tmp
total 0
-rw-r--r-- 1 root root 0 Sep  3 08:42 toto
root@8597d5502142:/# su admin
admin@8597d5502142:/$ head /tmp/toto

(no permission denied)

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

Title:
  sudo localedef from docker does not work anymore after upgrade from
  4.4.0-1088-aws to  4.4.0-1090-aws

Status in linux-aws package in Ubuntu:
  New

Bug description:
  step to reproduce

  take an AMI: ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20190816 
  (it runs by default the version 4.4.0-1090-aws of the kernel)

  install docker on it and launch a debian:stretch instance (can
  reproduce with ubuntu:latest)

  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  sudo add-apt-repository  "deb [arch=amd64] 
https://download.docker.com/linux/ubuntu $(lsb_release -cs)   stable"
  sudo apt-get update
  sudo apt-get install -y docker-ce
  sudo docker run -it debian:stretch bash 


  from within the docker , install sudo and create a user "admin" part of the 
sudo group
  install the package 'locales', and then try to activate the locale 
fr_FR.UTF-8:

  apt-get install -y sudo locales
  adduser admin
  usermod -aG sudo admin
  su admin
  sudo localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias 
fr_FR.UTF-8
  locale -a 

  it displays :

  C
  C.UTF-8
  POSIX

  
  now if you run the same command as root, from within the very same docker 
container:

  localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8
  locale -a

  it displays correctly:

  C
  C.UTF-8
  POSIX
  fr_FR.utf8

  
  I've been able to track down that with the AMI 
ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20190807(ami-0e253b69fb96577d1)
 the problem does not appear
  if you apt-get upgrade , it still does not appear,
  BUT if you dist-upgrade, it then upgrades linux-aws from 4.4.0-1088-aws to 
4.4.0-1092-aws, and if you reboot, then the bugs appears too , which to me 
proves that there's an issue between docker and version of the linux kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1842364/+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