Guest User

Untitled

a guest
Jan 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $ docker run --cap-add SYS_TIME -it ubuntu:16.04 /bin/bash
  2. root@50007999ec5e:/# date --set "+2 hours"
  3. date: cannot set date: Operation not permitted
  4. Thu Jan 1 2:00:00 UTC 1970
  5.  
  6. $ docker run --security-opt apparmor:unconfined --cap-add SYS_TIME -it ubuntu:16.04 /bin/bash
  7. root@c4d923009bab:/# date --set "+2 hours"
  8. date: cannot set date: Operation not permitted
  9. Thu Jan 1 2:00:00 UTC 1970
  10.  
  11. $ docker run --privileged -it ubuntu:16.04 /bin/bash
  12. root@35ef33342149:/# date --set "+2 hours"
  13. Thu Jan 1 2:00:00 UTC 1970
Add Comment
Please, Sign In to add comment