Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- fcf5a2b0ad37 hw2 "python ./conta.py" 35 seconds ago Up 31 seconds musing_dubinsky
- romer@romer-Z550MA:~/Documentos/api/helloworld$ cd ../
- romer@romer-Z550MA:~/Documentos/api$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- romer@romer-Z550MA:~/Documentos/api$ mkdir fonte
- romer@romer-Z550MA:~/Documentos/api$ mkdir destino
- romer@romer-Z550MA:~/Documentos/api$ mv fonte/consumidor.py destino/consumidor.py
- romer@romer-Z550MA:~/Documentos/api$ mv fonte/rq.py destino/rq.py
- romer@romer-Z550MA:~/Documentos/api$ touch fonte/Dockerfile
- romer@romer-Z550MA:~/Documentos/api$ touch destino/Dockerfile
- romer@romer-Z550MA:~/Documentos/api$ pip3
- Comando 'pip3' não encontrado, mas poder ser instalado com:
- sudo apt install python3-pip
- romer@romer-Z550MA:~/Documentos/api$ pip
- Comando 'pip' não encontrado, mas poder ser instalado com:
- sudo apt install python3-pip
- romer@romer-Z550MA:~/Documentos/api$ python3 -V
- Python 3.8.10
- romer@romer-Z550MA:~/Documentos/api$ cd fonte
- romer@romer-Z550MA:~/Documentos/api/fonte$ docker build . -t hw2
- Sending build context to Docker daemon 6.144kB
- Step 1/5 : FROM python:3
- ---> 1e76b28bfd4e
- Step 2/5 : WORKDIR /app
- ---> Using cache
- ---> 9e0bbbfb4587
- Step 3/5 : COPY . .
- ---> 504affe389a6
- Step 4/5 : RUN pip install fastapi uvicorn [standart]
- ---> Running in 5c88afdb8560
- ERROR: Invalid requirement: '[standart]'
- The command '/bin/sh -c pip install fastapi uvicorn [standart]' returned a non-zero code: 1
- romer@romer-Z550MA:~/Documentos/api/fonte$ docker build . -t hw2
- Sending build context to Docker daemon 6.144kB
- Step 1/5 : FROM python:3
- ---> 1e76b28bfd4e
- Step 2/5 : WORKDIR /app
- ---> Using cache
- ---> 9e0bbbfb4587
- Step 3/5 : COPY . .
- ---> 865cfbce920a
- Step 4/5 : RUN pip install fastapi uvicorn
- ---> Running in 06e3da1433fa
- Collecting fastapi
- Downloading fastapi-0.68.1-py3-none-any.whl (52 kB)
- Collecting uvicorn
- Downloading uvicorn-0.15.0-py3-none-any.whl (54 kB)
- Collecting starlette==0.14.2
- Downloading starlette-0.14.2-py3-none-any.whl (60 kB)
- Collecting pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2
- Downloading pydantic-1.8.2-cp39-cp39-manylinux2014_x86_64.whl (11.3 MB)
- Collecting h11>=0.8
- Downloading h11-0.12.0-py3-none-any.whl (54 kB)
- Collecting click>=7.0
- Downloading click-8.0.1-py3-none-any.whl (97 kB)
- Collecting asgiref>=3.4.0
- Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)
- Collecting typing-extensions>=3.7.4.3
- Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
- Installing collected packages: typing-extensions, starlette, pydantic, h11, click, asgiref, uvicorn, fastapi
- Successfully installed asgiref-3.4.1 click-8.0.1 fastapi-0.68.1 h11-0.12.0 pydantic-1.8.2 starlette-0.14.2 typing-extensions-3.10.0.0 uvicorn-0.15.0
- WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
- Removing intermediate container 06e3da1433fa
- ---> edbbde29303a
- Step 5/5 : CMD [ "python", "./main.py" ]
- ---> Running in 5f3829d79c16
- Removing intermediate container 5f3829d79c16
- ---> f1a012b67099
- Successfully built f1a012b67099
- Successfully tagged hw2:latest
- romer@romer-Z550MA:~/Documentos/api/fonte$ cd ../destino
- romer@romer-Z550MA:~/Documentos/api/destino$ docker build . -t destino
- Sending build context to Docker daemon 4.096kB
- Step 1/5 : FROM python:3
- ---> 1e76b28bfd4e
- Step 2/5 : WORKDIR /app
- ---> Using cache
- ---> 9e0bbbfb4587
- Step 3/5 : COPY . .
- ---> 4bb63fe59fa7
- Step 4/5 : RUN pip install requests
- ---> Running in 32157b90a95c
- Collecting requests
- Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
- Collecting certifi>=2017.4.17
- Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
- Collecting charset-normalizer~=2.0.0
- Downloading charset_normalizer-2.0.4-py3-none-any.whl (36 kB)
- Collecting idna<4,>=2.5
- Downloading idna-3.2-py3-none-any.whl (59 kB)
- Collecting urllib3<1.27,>=1.21.1
- Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
- Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
- Successfully installed certifi-2021.5.30 charset-normalizer-2.0.4 idna-3.2 requests-2.26.0 urllib3-1.26.6
- WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
- Removing intermediate container 32157b90a95c
- ---> 6fac73c51795
- Step 5/5 : CMD [ "python", "./main.py" ]
- ---> Running in 16c65ad32dc9
- Removing intermediate container 16c65ad32dc9
- ---> 835fc3a39e96
- Successfully built 835fc3a39e96
- Successfully tagged destino:latest
- romer@romer-Z550MA:~/Documentos/api/destino$ docker run --publish 8000:8000 destino
- python: can't open file '/app/./main.py': [Errno 2] No such file or directory
- romer@romer-Z550MA:~/Documentos/api/destino$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- romer@romer-Z550MA:~/Documentos/api/destino$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- romer@romer-Z550MA:~/Documentos/api/destino$ docker
- romer@romer-Z550MA:~$ sudo service docker start
- [sudo] senha para romer:
- romer@romer-Z550MA:~$ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- my-apache2 latest 4c081bd9365b 2 hours ago 138MB
- romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
- <none> <none> 32921b908719 14 hours ago 1.04GB
- python latest 1e76b28bfd4e 8 days ago 911MB
- httpd 2.4 c8ca530172a8 8 days ago 138MB
- python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
- hello-world latest d1165f221234 5 months ago 13.3kB
- mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
- django latest eb40dcf64078 4 years ago 436MB
- romer@romer-Z550MA:~$ cd chanceler
- bash: cd: chanceler: Arquivo ou diretório inexistente
- romer@romer-Z550MA:~$ ls
- 'Área de Trabalho' Downloads Modelos Público Vídeos
- Documentos Imagens Música snap
- romer@romer-Z550MA:~$ cd Documentos
- romer@romer-Z550MA:~/Documentos$ ls
- api chanceler
- romer@romer-Z550MA:~/Documentos$ cd chanceler
- romer@romer-Z550MA:~/Documentos/chanceler$ ls
- cp
- romer@romer-Z550MA:~/Documentos/chanceler$ cd cp
- romer@romer-Z550MA:~/Documentos/chanceler/cp$ cd ../../api
- romer@romer-Z550MA:~/Documentos/api$ ls
- base bd clock converte-medidas cpf lua verifica-email
- romer@romer-Z550MA:~/Documentos/api$ cd clock
- romer@romer-Z550MA:~/Documentos/api/clock$ ls
- conta.py Dockerfile Dockerfile.save public-html
- romer@romer-Z550MA:~/Documentos/api/clock$ nano Dockerfile
- romer@romer-Z550MA:~/Documentos/api/clock$ docker build . -t clock
- Sending build context to Docker daemon 4.608kB
- Step 1/2 : FROM httpd:2.4
- ---> c8ca530172a8
- Step 2/2 : COPY ./public-html/ /usr/local/apache2/htdocs/
- ---> Using cache
- ---> 4c081bd9365b
- Successfully built 4c081bd9365b
- Successfully tagged clock:latest
- romer@romer-Z550MA:~/Documentos/api/clock$ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- clock latest 4c081bd9365b 2 hours ago 138MB
- my-apache2 latest 4c081bd9365b 2 hours ago 138MB
- romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
- <none> <none> 32921b908719 14 hours ago 1.04GB
- python latest 1e76b28bfd4e 8 days ago 911MB
- httpd 2.4 c8ca530172a8 8 days ago 138MB
- python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
- hello-world latest d1165f221234 5 months ago 13.3kB
- mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
- django latest eb40dcf64078 4 years ago 436MB
- romer@romer-Z550MA:~/Documentos/api/clock$ docker run python
- romer@romer-Z550MA:~/Documentos/api/clock$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- romer@romer-Z550MA:~/Documentos/api/clock$ docker ps -a
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 3f1ce17a956d python "python3" 18 seconds ago Exited (0) 13 seconds ago boring_hofstadter
- 15f56416cc73 my-apache2 "httpd-foreground" 2 hours ago Exited (0) About an hour ago my-running-app
- f81adf89b085 django "python3" 3 hours ago Exited (0) 3 hours ago hopeful_driscoll
- 98b31eced5a4 python "python3" 3 hours ago Exited (0) 3 hours ago flamboyant_galileo
- 3417ce190523 django "python3" 3 hours ago Exited (0) 3 hours ago agitated_dhawan
- 744cb4f47a7c django "python3" 3 hours ago Exited (0) 3 hours ago sleepy_bhabha
- a26fbb10b8fc django "python3" 3 hours ago Exited (0) 3 hours ago agitated_beaver
- f7b379e4e005 python "python3" 3 hours ago Exited (0) 3 hours ago pedantic_lehmann
- 14e3c62cbc2c python "python3" 3 hours ago Exited (0) 3 hours ago lucid_franklin
- ed64c7fd6eea 32921b908719 "python3" 3 hours ago Exited (0) 3 hours ago laughing_turing
- ed3bc579a181 python "python3" 4 hours ago Exited (0) 4 hours ago sad_turing
- faa257836f3d 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_panini
- b37b4355fef0 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_wescoff
- 666d4bbc7a22 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago dazzling_hermann
- 974fdaa6e51a python "python3" 4 hours ago Exited (0) 4 hours ago zen_bose
- 9b0001afe8f3 hello-world "/hello" 4 hours ago Exited (0) 4 hours ago nostalgic_taussig
- cd0646a26d5f mhndev/docker-lua "run -v" 4 hours ago Created blissful_yalow
- 5d14801de19a b1831f760c12 "run -v" 4 hours ago Created keen_dirac
- 7a23ce2bdd0a b1831f760c12 "run -v" 4 hours ago Created wonderful_bassi
- 2cfa85ce32b8 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago romantic_visvesvaraya
- 73e6195a144c 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago busy_pare
- 17152a18d68a 9231c59cd582 "python3" 4 hours ago Exited (0) 4 hours ago sleepy_panini
- 0c4c9b47abcb mhndev/docker-lua "run -v" 4 hours ago Created hungry_greider
- 382b9668fbe2 romer/chanceler "python3 run.py" 6 hours ago Exited (1) 5 hours ago condescending_swanson
- 0d725185b2fb romer/chanceler "python3 run.py" 6 hours ago Exited (1) 6 hours ago elastic_albattani
- 07af063c37f9 python "python3" 2 days ago Exited (0) 2 days ago heuristic_faraday
- dd94928483f4 hello-world "/hello" 2 days ago Exited (0) 2 days ago bold_tu
- 64c73903043a hello-world "/hello" 2 days ago Exited (0) 2 days ago wizardly_goldwasser
- romer@romer-Z550MA:~/Documentos/api/clock$ docker run python
- romer@romer-Z550MA:~/Documentos/api/clock$ docker run python -it
- clocdocker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "-it": executable file not found in $PATH: unknown.
- ERRO[0004] error waiting for container: context canceled
- romer@romer-Z550MA:~/Documentos/api/clock$ docker run -it python
- Python 3.9.6 (default, Aug 17 2021, 15:37:33)
- [GCC 10.2.1 20210110] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import conta
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ModuleNotFoundError: No module named 'conta'
- >>> import os
- >>> os.system('ls')
- bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
- 0
- >>> os.system('ls usr')
- bin games include lib libexec local sbin share src
- 0
- >>> os.system('ls root')
- 0
- >>>
- KeyboardInterrupt
- >>>
- KeyboardInterrupt
- >>> os.exit()
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- AttributeError: module 'os' has no attribute 'exit'
- >>> exit
- Use exit() or Ctrl-D (i.e. EOF) to exit
- >>>
- romer@romer-Z550MA:~/Documentos/api/clock$ docker run -it python
- Python 3.9.6 (default, Aug 17 2021, 15:37:33)
- [GCC 10.2.1 20210110] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from os import system as s
- >>> s('pip freeze')
- 0
- >>> s('pip3 freeze')
- 0
- >>> s('pip list')
- Package Version
- ---------- -------
- pip 21.2.4
- setuptools 57.4.0
- wheel 0.37.0
- 0
- >>>
- romer@romer-Z550MA:~/Documentos/api/clock$ cd ../helloworld
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
- Sending build context to Docker daemon 3.072kB
- Step 1/4 : FROM python:3
- 3: Pulling from library/python
- Digest: sha256:2bd64896cf4ff75bf91a513358457ed09d890715d9aa6bb602323aedbee84d14
- Status: Downloaded newer image for python:3
- ---> 1e76b28bfd4e
- Step 2/4 : WORKDIR /app
- ---> Running in 99e9d33d609b
- Removing intermediate container 99e9d33d609b
- ---> 9e0bbbfb4587
- Step 3/4 : COPY . .
- ---> f7db64ac0f21
- Step 4/4 : CMD ['python', '.program.py']
- ---> Running in 025e2b1e4b6a
- Removing intermediate container 025e2b1e4b6a
- ---> f924456e265e
- Successfully built f924456e265e
- Successfully tagged hw2:latest
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
- /bin/sh: 1: [python,: not found
- romer@romer-Z550MA:~/Documentos/api/helloworld$ ls
- Dockerfile program.py
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
- ^[[A^[[A/bin/sh: 1: [python,: not found
- ^[[A^[[Aromer@romer-Z550MA:~/Documentos/api/helloworld$ ocker build . -t hw2
- Comando 'ocker' não encontrado, você quis dizer:
- comando 'docker' do snap docker (19.03.13)
- comando 'docker' do deb docker.io (20.10.7-0ubuntu1~20.04.1)
- Veja 'snap info <snapname>' para versões adicionais.
- ^[[Dromer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
- Sending build context to Docker daemon 3.072kB
- Step 1/4 : FROM python:3
- ---> 1e76b28bfd4e
- Step 2/4 : WORKDIR /app
- ---> Using cache
- ---> 9e0bbbfb4587
- Step 3/4 : COPY . .
- ---> 771dce4b0577
- Step 4/4 : CMD ['python', './program.py']
- ---> Running in d19d0fcea720
- Removing intermediate container d19d0fcea720
- ---> ef46dad85339
- Successfully built ef46dad85339
- Successfully tagged hw2:latest
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
- /bin/sh: 1: [python,: not found
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
- Sending build context to Docker daemon 3.072kB
- Step 1/4 : FROM python:3
- ---> 1e76b28bfd4e
- Step 2/4 : WORKDIR /app
- ---> Using cache
- ---> 9e0bbbfb4587
- Step 3/4 : COPY . .
- ---> 9093608405db
- Step 4/4 : CMD [ "python", "./program.py" ]
- ---> Running in 15c0aa1f2221
- Removing intermediate container 15c0aa1f2221
- ---> f4b6f5c5ff71
- Successfully built f4b6f5c5ff71
- Successfully tagged hw2:latest
- romer@romer-Z550MA:~/Documentos/api/helloworld$
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
- Hello World
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- hw2 latest f4b6f5c5ff71 27 seconds ago 911MB
- <none> <none> ef46dad85339 About a minute ago 911MB
- <none> <none> f924456e265e 4 minutes ago 911MB
- clock latest 4c081bd9365b 2 hours ago 138MB
- my-apache2 latest 4c081bd9365b 2 hours ago 138MB
- romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
- <none> <none> 32921b908719 14 hours ago 1.04GB
- python 3 1e76b28bfd4e 8 days ago 911MB
- python latest 1e76b28bfd4e 8 days ago 911MB
- httpd 2.4 c8ca530172a8 8 days ago 138MB
- python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
- hello-world latest d1165f221234 5 months ago 13.3kB
- mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
- django latest eb40dcf64078 4 years ago 436MB
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker ps -a
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 894d976668a4 hw2 "python ./program.py" 36 seconds ago Exited (0) 33 seconds ago trusting_almeida
- 419a0975d0ae ef46dad85339 "/bin/sh -c '['pytho…" 2 minutes ago Exited (127) About a minute ago vibrant_mirzakhani
- 0f8fdedf2c7e f924456e265e "/bin/sh -c '['pytho…" 2 minutes ago Exited (127) 2 minutes ago adoring_cartwright
- 3f219ab979e4 f924456e265e "/bin/sh -c '['pytho…" 3 minutes ago Exited (127) 3 minutes ago inspiring_morse
- 2ef5352fb67b python "python3" 13 minutes ago Exited (0) 5 minutes ago hopeful_lehmann
- be1d810b813b python "python3" 15 minutes ago Exited (0) 13 minutes ago elegant_dewdney
- 812cb64174a1 python "-it" 15 minutes ago Created stoic_northcutt
- a34cce71746f python "python3" 15 minutes ago Exited (0) 15 minutes ago charming_torvalds
- 3f1ce17a956d python "python3" 16 minutes ago Exited (0) 16 minutes ago boring_hofstadter
- 15f56416cc73 my-apache2 "httpd-foreground" 2 hours ago Exited (0) 2 hours ago my-running-app
- f81adf89b085 django "python3" 3 hours ago Exited (0) 3 hours ago hopeful_driscoll
- 98b31eced5a4 python "python3" 3 hours ago Exited (0) 3 hours ago flamboyant_galileo
- 3417ce190523 django "python3" 3 hours ago Exited (0) 3 hours ago agitated_dhawan
- 744cb4f47a7c django "python3" 3 hours ago Exited (0) 3 hours ago sleepy_bhabha
- a26fbb10b8fc django "python3" 3 hours ago Exited (0) 3 hours ago agitated_beaver
- f7b379e4e005 python "python3" 3 hours ago Exited (0) 3 hours ago pedantic_lehmann
- 14e3c62cbc2c python "python3" 4 hours ago Exited (0) 3 hours ago lucid_franklin
- ed64c7fd6eea 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago laughing_turing
- ed3bc579a181 python "python3" 4 hours ago Exited (0) 4 hours ago sad_turing
- faa257836f3d 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_panini
- b37b4355fef0 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_wescoff
- 666d4bbc7a22 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago dazzling_hermann
- 974fdaa6e51a python "python3" 4 hours ago Exited (0) 4 hours ago zen_bose
- 9b0001afe8f3 hello-world "/hello" 4 hours ago Exited (0) 4 hours ago nostalgic_taussig
- cd0646a26d5f mhndev/docker-lua "run -v" 4 hours ago Created blissful_yalow
- 5d14801de19a b1831f760c12 "run -v" 4 hours ago Created keen_dirac
- 7a23ce2bdd0a b1831f760c12 "run -v" 4 hours ago Created wonderful_bassi
- 2cfa85ce32b8 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago romantic_visvesvaraya
- 73e6195a144c 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago busy_pare
- 17152a18d68a 9231c59cd582 "python3" 4 hours ago Exited (0) 4 hours ago sleepy_panini
- 0c4c9b47abcb mhndev/docker-lua "run -v" 4 hours ago Created hungry_greider
- 382b9668fbe2 romer/chanceler "python3 run.py" 6 hours ago Exited (1) 6 hours ago condescending_swanson
- 0d725185b2fb romer/chanceler "python3 run.py" 6 hours ago Exited (1) 6 hours ago elastic_albattani
- 07af063c37f9 python "python3" 2 days ago Exited (0) 2 days ago heuristic_faraday
- dd94928483f4 hello-world "/hello" 2 days ago Exited (0) 2 days ago bold_tu
- 64c73903043a hello-world "/hello" 2 days ago Exited (0) 2 days ago wizardly_goldwasser
- romer@romer-Z550MA:~/Documentos/api/helloworld$ nano ../clock/conta.py
- romer@romer-Z550MA:~/Documentos/api/helloworld$ mv ../clock/conta.py conta.py
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
- Sending build context to Docker daemon 4.096kB
- Step 1/4 : FROM python:3
- ---> 1e76b28bfd4e
- Step 2/4 : WORKDIR /app
- ---> Using cache
- ---> 9e0bbbfb4587
- Step 3/4 : COPY . .
- ---> 03a33aa7de44
- Step 4/4 : CMD [ "python", "./conta.py" ]
- ---> Running in 9c61c686f3cc
- Removing intermediate container 9c61c686f3cc
- ---> b96ff9dcdbe3
- Successfully built b96ff9dcdbe3
- Successfully tagged hw2:latest
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -t hw2
- ^CTraceback (most recent call last):
- File "/app/./conta.py", line 3, in <module>
- sleep(1)
- KeyboardInterrupt
- romer@romer-Z550MA:~/Documentos/api/helloworld$ ^C
- romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run --publish 8000:8000 node-dockerromer@romer-Z550MA:~$ sudo service docker start
- docker: invalid reference format: repository name must be lowercase.
- See 'docker run --help'.
- romer@romer-Z550MA:~/Documentos/api/helloworld$ [sudo] senha para romer:
- [sudo]: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ romer@romer-Z550MA:~$ docker images
- romer@romer-Z550MA:~$: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ REPOSITORY TAG IMAGE ID CREATED SIZE
- REPOSITORY: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ my-apache2 latest 4c081bd9365b 2 hours ago 138MB
- my-apache2: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
- bash: romer/chanceler: Arquivo ou diretório inexistente
- romer@romer-Z550MA:~/Documentos/api/helloworld$ <none> <none> 32921b908719 14 hours ago 1.04GB
- bash: erro de sintaxe próximo ao token inesperado `<'
- romer@romer-Z550MA:~/Documentos/api/helloworld$ python latest 1e76b28bfd4e 8 days ago 911MB
- Comando 'python' não encontrado, você quis dizer:
- comando 'python3' do deb python3
- comando 'python' do deb python-is-python3
- romer@romer-Z550MA:~/Documentos/api/helloworld$ httpd 2.4 c8ca530172a8 8 days ago 138MB
- Comando 'httpd' não encontrado, você quis dizer:
- comando 'http' do snap http (2.4.0)
- comando 'xttpd' do deb xtide (2.13.2-1build2)
- comando 'http' do deb httpie (1.0.3-2)
- Veja 'snap info <snapname>' para versões adicionais.
- romer@romer-Z550MA:~/Documentos/api/helloworld$ python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
- Comando 'python' não encontrado, você quis dizer:
- comando 'python3' do deb python3
- comando 'python' do deb python-is-python3
- romer@romer-Z550MA:~/Documentos/api/helloworld$ hello-world latest d1165f221234 5 months ago 13.3kB
- Comando 'hello-world' não encontrado, mas poder ser instalado com:
- sudo snap install hello-world
- romer@romer-Z550MA:~/Documentos/api/helloworld$ mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
- bash: mhndev/docker-lua: Arquivo ou diretório inexistente
- romer@romer-Z550MA:~/Documentos/api/helloworld$ django latest eb40dcf64078 4 years ago 436MB
- django: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ romer@romer-Z550MA:~$ cd chanceler
- romer@romer-Z550MA:~$: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ bash: cd: chanceler: Arquivo ou diretório inexistente
- Comando 'bash:' não encontrado, você quis dizer:
- comando 'bash' do deb bash (5.0-6ubuntu1.1)
- Experimente: sudo apt install <deb name>
- romer@romer-Z550MA:~/Documentos/api/helloworld$ romer@romer-Z550MA:~$ ls
- romer@romer-Z550MA:~$: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ 'Área de Trabalho' Downloads Modelos Público Vídeos
- Área de Trabalho: comando não encontrado
- romer@romer-Z550MA:~/Documentos/api/helloworld$ Documentos Imagens Música snap
- ^Z
- [1]+ Parado Documentos Imagens Música snap
- romer@romer-Z550MA:~/Documentos/api/helloworld$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement