dockerfile 创建

1.创建

docker build .

2.运行

docker run image-name

3.看镜像名

docker images

4.shell连进去

docker run --net=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --user root -it image-name /bin/bash 

5.删除镜像

docker container rm  trusting_newton

你可能感兴趣的:(dockerfile 创建)