Cannot build docker image - returning error parsing time

ERROR: parsing time "<?xml version=\"1.0\"?>\x0a<application-state>\x0a  <context id=\"\">\x0a    <application id=\"org.gnome.Nautilus.desktop\" score=\"106.48135579632097\" last-seen=\"1680736117\"/>\x0a    <application id=\"slack_slack.desktop\" score=\"1062.1875\" last-seen=\"1680734198\"/>\x0a    <application id=\"org.gnome.Screenshot.desktop\" score=\"2.78125\" last-seen=\"1680595771\"/>\x0a    <application id=\"firefox.desktop\" score=\"13853.323882877827\" last-seen=\"1680734511\"/>\x0a    <application id=\"org.gnome.Terminal.desktop\" score=\"276.28046839311719\" last-seen=\"1680737027\"/>\x0a    <application id=\"code.desktop\" score=\"4782.8345947265625\" last-seen=\"1680694572\"/>\x0a    <application id=\"google-chrome.desktop\" score=\"14804.050659179688\" last-seen=\"1680736981\"/>\x0a    <application id=\"gnome-control-center.desktop\" score=\"1.2109375\" last-seen=\"1680462630\"/>\x0a    <application id=\"apport-gtk.desktop\" score=\"0\" last-seen=\"1680565641\"/>\x0a    <application id=\"update-manager.desktop\" score=\"0\" last-seen=\"1680565538\"/>\x0a  </context>\x0a</application-state>\x0a" as "2006-01-02T15:04:05Z07:00": cannot parse "<?xml version=\"1.0\"?>\x0a<application-state>\x0a  <context id=\"\">\x0a    <application id=\"org.gnome.Nautilus.desktop\" score=\"106.48135579632097\" last-seen=\"1680736117\"/>\x0a    <application id=\"slack_slack.desktop\" score=\"1062.1875\" last-seen=\"1680734198\"/>\x0a    <application id=\"org.gnome.Screenshot.desktop\" score=\"2.78125\" last-seen=\"1680595771\"/>\x0a    <application id=\"firefox.desktop\" score=\"13853.323882877827\" last-seen=\"1680734511\"/>\x0a    <application id=\"org.gnome.Terminal.desktop\" score=\"276.28046839311719\" last-seen=\"1680737027\"/>\x0a    <application id=\"code.desktop\" score=\"4782.8345947265625\" last-seen=\"1680694572\"/>\x0a    <application id=\"google-chrome.desktop\" score=\"14804.050659179688\" last-seen=\"1680736981\"/>\x0a    <application id=\"gnome-control-center.desktop\" score=\"1.2109375\" last-seen=\"1680462630\"/>\x0a    <application id=\"apport-gtk.desktop\" score=\"0\" last-seen=\"1680565641\"/>\x0a    <application id=\"update-manager.desktop\" score=\"0\" last-seen=\"1680565538\"/>\x0a  </context>\x0a</application-state>\x0a" as "2006"

This is the error I get any time I try to build an image on my computer irrespective on the sourcecode of the image

Please share more information to give us something we can work with. Otherwisethe only clue is an XML output which I would not like to guess what it means I why you get it. It contains application names on Linux but that’s all I can say about it…

  • How do you build the image? Please share your Dockerfile or at least a small Dockerfile that gives you the same result
  • Share what perating system you are using and how you installed Docker
  • Share the output of the following commands:
    docker info
    docker version
    dpkg -l | grep docker # only on debian based systems
    snap list docker # mainly on Ubuntu