[root@dyw219 newimg]# docker images centos REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE centos mydir 9fe04fab671a 7 minutes ago 201.8 MB centos myfile 25f7f65b6de0 About an hour ago 201.8 MB centos latest ee2526f4865b 5 months ago 201.8 MB
[root@dyw219 newimg]# docker run -it centos:mydir /bin/bash
[root@90fb625a3287 /]# mydir/start.sh Thu Aug 15 11:35:41 UTC 2019
[root@90fb625a3287 /]# exit exit