title: Docker build freezes on command
body: <p><a href="https://stackoverflow.com/search?q=%5BDocker%5D%20freezes">Multiple Questions</a> have been asked, but neither the solutions nor the suggestions work for me. I am using the <a href="https://github.com/manjaro/manjaro-docker" rel="nofollow noreferrer">manjarolinux docker</a>. The image installs most of the stuff in the dockerfile:</p>
  <pre><code>
  FROM manjarolinux/base
  
  RUN pacman-mirrors -g
  RUN pacman -Syy
  RUN rm -fr /etc/pacman.d/gnupg 
  RUN pacman-key --init 
  RUN pacman-key --populate archlinux
  RUN pacman-key --populate manjaro
  # RUN pacman-key --refresh-keys
  RUN pacman -Syyu --noconfirm
  RUN pacman -S --noconfirm gnupg
  RUN pacman -Fyy --noconfirm
  
  RUN pacman -Sy --noconfirm vim git gzip yay # this line 
  RUN pacman -Sy --noconfirm sudo fakeroot make
  
  RUN pacman -Sy --noconfirm gcc clang 
  
  RUN groupadd sudo wheel
  RUN useradd -m -d /home/manjarouser -s /bin/zsh -g sudo wheel manjarouser
  
  USER manjarouser
  
  </code></pre>
  <p>However, after the line marked with <code>this line</code>, the build simply freezes:</p>
  <p><a href="https://i.stack.imgur.com/oV9CZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oV9CZ.png" alt="build freeze step" /></a></p>