AD Teaching Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

FrontPage

Revision 2 as of 2018-05-18 15:13:55
AD Teaching Wiki:
  • DockerTroubleshooting

Troubleshooting some frequent problems with Docker.

Contents

  1. A dependency job for docker.service failed (on etna)
  2. Cannot write /home/<user>/.docker
  3. tar cannot change ownership

A dependency job for docker.service failed (on etna)

Problem: cannot start docker.dock service (we don't yet understand why).

Workaround: sudo dockerd (followed by Ctrl+Z and bg)

Cannot write /home/<user>/.docker

Problem: sudo on Machine X != ustica cannot write /home/<user> (different root users on different machines)

Solution 1: Remove /home/<user>/.docker (not sure whether this always works)

Solution 2: sudo docker --config /tmp build -t <name> . (and maybe also for sudo docker run)

tar cannot change ownership

Problem: the tar command wants to preserve ownership, but has problems even as root because auf UID and GID mismatches.

Solution: add the option --no-same-owner at the end(!) of the tar command

Source: https://www.krenger.ch/blog/linux-tar-cannot-change-ownership-to-permission-denied/

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01