Advertisement
Mochinov

Untitled

May 2nd, 2022
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. [5.8]alexander@MacBook-Air-Alexander:~/Dockerfiles> docker build -t dockerfile .
  2. [+] Building 0.3s (6/8)
  3. => [internal] load build definition from Dockerfile 0.0s
  4. => => transferring dockerfile: 84B 0.0s
  5. => [internal] load .dockerignore 0.0s
  6. => => transferring context: 2B 0.0s
  7. => [internal] load metadata for docker.io/library/ubuntu:latest 0.0s
  8. => [1/5] FROM docker.io/library/ubuntu:latest 0.0s
  9. => CACHED [2/5] RUN apt update && apt install -y openjdk-8-jdk && apt install -y openssh-server sudo -y 0.0s
  10. => ERROR [3/5] RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test1 0.2s
  11. ------
  12. > [3/5] RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test1:
  13. #6 0.178 useradd: UID 1000 is not unique
  14. ------
  15. executor failed running [/bin/sh -c useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test1]: exit code: 4
  16. [5.8]{1}alexander@MacBook-Air-Alexander:~/Dockerfiles> nano Dockerfile
  17. [5.8]alexander@MacBook-Air-Alexander:~/Dockerfiles> docker build -t dockerfile .
  18. [+] Building 0.2s (6/8)
  19. => [internal] load build definition from Dockerfile 0.0s
  20. => => transferring dockerfile: 538B 0.0s
  21. => [internal] load .dockerignore 0.0s
  22. => => transferring context: 2B 0.0s
  23. => [internal] load metadata for docker.io/library/ubuntu:latest 0.0s
  24. => [1/5] FROM docker.io/library/ubuntu:latest 0.0s
  25. => CACHED [2/5] RUN apt update && apt install -y openjdk-8-jdk && apt install -y openssh-server sudo -y 0.0s
  26. => ERROR [3/5] RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test 0.2s
  27. ------
  28. > [3/5] RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test:
  29. #6 0.174 useradd: user 'test' already exists
  30. ------
  31. executor failed running [/bin/sh -c useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test]: exit code: 9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement