比较简单的只要单独的dockerFile就可以 最简单: FROM ubuntu:20.04
删除所有的image docker rmi $(docker images -a -q)
run一个image,注意要用 -ti
The -t is TTY and -i will keep STDIN open. if don't do this, bash will see that there is no more input on STDIN and exit.
docker run -d -ti –entrypoint /bin/bash ubuntulln:v1 docker exec -ti 86f8f0e0 /bin/bash
查看硬件系统 root@86f8f0e09045:/# uname -m x86_64
container name: the name is randomly generated if you don't set it yourself, but human readable. Reference: https://docs.docker.com/engine/reference/builder/