25. 25
$ docker login
Login with your Docker ID to push and pull images from Docker Hub.
If you don't have a Docker ID, head over to https://hub.docker.com
to create one.
Username: <username>
Password:
Login Succeeded
$ cat ~/.docker/config.json
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "emVtYnV1c3U6a2F0YW5hMjkyOSNS"
}
}
}
33. 33
$ docker history simplepot:latest
IMAGE CREATED CREATED BY SIZE COMMENT
0b9e5d88390d About an hour ago /bin/sh -c #(nop) CMD ["/usr/sbin/sshd" "... 0B
99d01bb57aa0 About an hour ago /bin/sh -c #(nop) EXPOSE 22/tcp 0B
8431c888c464 About an hour ago /bin/sh -c /usr/bin/ssh-keygen -q -t rsa -... 2.06kB
d17fb17a5f1e About an hour ago /bin/sh -c echo "root:admin" | chpasswd 1kB
fae9166d1392 About an hour ago /bin/sh -c yum -y install openssh-server 109MB
328edcd84f1b 13 days ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0B
<missing> 13 days ago /bin/sh -c #(nop) LABEL name=CentOS Base ... 0B
<missing> 13 days ago /bin/sh -c #(nop) ADD file:63492ba809361c5... 193MB
$ docker diff 9b
C /run
C /run/utmp
C /var
C /var/log
C /var/log/lastlog
C /var/log/wtmp
D /root