Primeira Imagem com Dockerfile
$ docker container run -it ubuntu /bin/bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
31e907dcc94a: Pull complete
Digest: sha256:8a37d68f4f73ebf3d4efafbcf66379bf3728902a8038616808f04e34a9ab63ee
Status: Downloaded newer image for ubuntu:latest
root@c9a8918623e1:/# ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr varroot@c9a8918623e1:/# curl
bash: curl: command not foundroot@c9a8918623e1:/# apt update
root@c9a8918623e1:/# apt install curl -y
root@c9a8918623e1:/# curl
curl: try 'curl --help' or 'curl --manual' for more informationroot@c9a8918623e1:/# exit
exit
$ docker container run -it ubuntu /bin/bash
root@bbca1411e36e:/# curl
bash: curl: command not founddocker image build
Last updated