docker 在commit -a 的那个用户信息如何能看到?

root@miaowo:~# docker commit -m 'install openssh' -a 'stephen2019' 86c2edf93b3c newsshd:latest
sha256:3999519f240ac54638cc154b8beed9e81566933dcd9a4511c5c2bd33954c2ada
root@miaowo:~# docker images
REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
newsshd                      latest              3999519f240a        9 seconds ago       1.33GB
sshd                         v1                  c5d35068dc0e        15 hours ago        1.33GB
stephen2019token/python3.7   latest              1e071b1fc2a7        41 hours ago        1.25GB
python3.7                    latest              e52ec33a8c8c        7 weeks ago         1.16GB
centos                       latest              9f38484d220f        5 months ago        202MB
root@miaowo:~# docker images -a
REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
newsshd                      latest              3999519f240a        15 seconds ago      1.33GB
<none>                       <none>              6e7af4363cdf        14 hours ago        1.33GB
sshd                         v1                  c5d35068dc0e        15 hours ago        1.33GB
stephen2019token/python3.7   latest              1e071b1fc2a7        41 hours ago        1.25GB
python3.7                    latest              e52ec33a8c8c        7 weeks ago         1.16GB
centos                       latest              9f38484d220f        5 months ago        202MB
root@miaowo:~# docker ps -l
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
86c2edf93b3c        6e7af4363cdf        "bash"              2 hours ago         Up 2 hours                              inspiring_davinci
root@miaowo:~# docker images -a
REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
newsshd                      latest              3999519f240a        55 seconds ago      1.33GB
<none>                       <none>              6e7af4363cdf        14 hours ago        1.33GB
sshd                         v1                  c5d35068dc0e        15 hours ago        1.33GB
stephen2019token/python3.7   latest              1e071b1fc2a7        41 hours ago        1.25GB
python3.7                    latest              e52ec33a8c8c        7 weeks ago         1.16GB
centos                       latest              9f38484d220f        5 months ago        202MB
root@miaowo:~# docker images -f
flag needs an argument: 'f' in -f
See 'docker images --help'.
root@miaowo:~# docker images 
REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
newsshd                      latest              3999519f240a        4 minutes ago       1.33GB
sshd                         v1                  c5d35068dc0e        15 hours ago        1.33GB
stephen2019token/python3.7   latest              1e071b1fc2a7        41 hours ago        1.25GB
python3.7                    latest              e52ec33a8c8c        7 weeks ago         1.16GB
centos                       latest              9f38484d220f        5 months ago        202MB
root@miaowo:~# 

我查案镜像的时候看不到这个-a提交的那个参数?

阅读 2.6k
1 个回答

可以试试:

docker image inspect newsshd

打出来的信息是有Author的,希望能帮助到你。