Advertisement
romerlrl

Untitled

Aug 25th, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.73 KB | None | 0 0
  1. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker ps
  2. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  3. fcf5a2b0ad37 hw2 "python ./conta.py" 35 seconds ago Up 31 seconds musing_dubinsky
  4. romer@romer-Z550MA:~/Documentos/api/helloworld$ cd ../
  5. romer@romer-Z550MA:~/Documentos/api$ docker ps
  6. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  7. romer@romer-Z550MA:~/Documentos/api$ mkdir fonte
  8. romer@romer-Z550MA:~/Documentos/api$ mkdir destino
  9. romer@romer-Z550MA:~/Documentos/api$ mv fonte/consumidor.py destino/consumidor.py
  10. romer@romer-Z550MA:~/Documentos/api$ mv fonte/rq.py destino/rq.py
  11. romer@romer-Z550MA:~/Documentos/api$ touch fonte/Dockerfile
  12. romer@romer-Z550MA:~/Documentos/api$ touch destino/Dockerfile
  13. romer@romer-Z550MA:~/Documentos/api$ pip3
  14.  
  15. Comando 'pip3' não encontrado, mas poder ser instalado com:
  16.  
  17. sudo apt install python3-pip
  18.  
  19. romer@romer-Z550MA:~/Documentos/api$ pip
  20.  
  21. Comando 'pip' não encontrado, mas poder ser instalado com:
  22.  
  23. sudo apt install python3-pip
  24.  
  25. romer@romer-Z550MA:~/Documentos/api$ python3 -V
  26. Python 3.8.10
  27. romer@romer-Z550MA:~/Documentos/api$ cd fonte
  28. romer@romer-Z550MA:~/Documentos/api/fonte$ docker build . -t hw2
  29. Sending build context to Docker daemon 6.144kB
  30. Step 1/5 : FROM python:3
  31. ---> 1e76b28bfd4e
  32. Step 2/5 : WORKDIR /app
  33. ---> Using cache
  34. ---> 9e0bbbfb4587
  35. Step 3/5 : COPY . .
  36. ---> 504affe389a6
  37. Step 4/5 : RUN pip install fastapi uvicorn [standart]
  38. ---> Running in 5c88afdb8560
  39. ERROR: Invalid requirement: '[standart]'
  40. The command '/bin/sh -c pip install fastapi uvicorn [standart]' returned a non-zero code: 1
  41. romer@romer-Z550MA:~/Documentos/api/fonte$ docker build . -t hw2
  42. Sending build context to Docker daemon 6.144kB
  43. Step 1/5 : FROM python:3
  44. ---> 1e76b28bfd4e
  45. Step 2/5 : WORKDIR /app
  46. ---> Using cache
  47. ---> 9e0bbbfb4587
  48. Step 3/5 : COPY . .
  49. ---> 865cfbce920a
  50. Step 4/5 : RUN pip install fastapi uvicorn
  51. ---> Running in 06e3da1433fa
  52. Collecting fastapi
  53. Downloading fastapi-0.68.1-py3-none-any.whl (52 kB)
  54. Collecting uvicorn
  55. Downloading uvicorn-0.15.0-py3-none-any.whl (54 kB)
  56. Collecting starlette==0.14.2
  57. Downloading starlette-0.14.2-py3-none-any.whl (60 kB)
  58. Collecting pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2
  59. Downloading pydantic-1.8.2-cp39-cp39-manylinux2014_x86_64.whl (11.3 MB)
  60. Collecting h11>=0.8
  61. Downloading h11-0.12.0-py3-none-any.whl (54 kB)
  62. Collecting click>=7.0
  63. Downloading click-8.0.1-py3-none-any.whl (97 kB)
  64. Collecting asgiref>=3.4.0
  65. Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)
  66. Collecting typing-extensions>=3.7.4.3
  67. Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
  68. Installing collected packages: typing-extensions, starlette, pydantic, h11, click, asgiref, uvicorn, fastapi
  69. 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
  70. 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
  71. Removing intermediate container 06e3da1433fa
  72. ---> edbbde29303a
  73. Step 5/5 : CMD [ "python", "./main.py" ]
  74. ---> Running in 5f3829d79c16
  75. Removing intermediate container 5f3829d79c16
  76. ---> f1a012b67099
  77. Successfully built f1a012b67099
  78. Successfully tagged hw2:latest
  79. romer@romer-Z550MA:~/Documentos/api/fonte$ cd ../destino
  80. romer@romer-Z550MA:~/Documentos/api/destino$ docker build . -t destino
  81. Sending build context to Docker daemon 4.096kB
  82. Step 1/5 : FROM python:3
  83. ---> 1e76b28bfd4e
  84. Step 2/5 : WORKDIR /app
  85. ---> Using cache
  86. ---> 9e0bbbfb4587
  87. Step 3/5 : COPY . .
  88. ---> 4bb63fe59fa7
  89. Step 4/5 : RUN pip install requests
  90. ---> Running in 32157b90a95c
  91. Collecting requests
  92. Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
  93. Collecting certifi>=2017.4.17
  94. Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
  95. Collecting charset-normalizer~=2.0.0
  96. Downloading charset_normalizer-2.0.4-py3-none-any.whl (36 kB)
  97. Collecting idna<4,>=2.5
  98. Downloading idna-3.2-py3-none-any.whl (59 kB)
  99. Collecting urllib3<1.27,>=1.21.1
  100. Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
  101. Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
  102. Successfully installed certifi-2021.5.30 charset-normalizer-2.0.4 idna-3.2 requests-2.26.0 urllib3-1.26.6
  103. 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
  104. Removing intermediate container 32157b90a95c
  105. ---> 6fac73c51795
  106. Step 5/5 : CMD [ "python", "./main.py" ]
  107. ---> Running in 16c65ad32dc9
  108. Removing intermediate container 16c65ad32dc9
  109. ---> 835fc3a39e96
  110. Successfully built 835fc3a39e96
  111. Successfully tagged destino:latest
  112. romer@romer-Z550MA:~/Documentos/api/destino$ docker run --publish 8000:8000 destino
  113. python: can't open file '/app/./main.py': [Errno 2] No such file or directory
  114. romer@romer-Z550MA:~/Documentos/api/destino$ docker ps
  115. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  116. romer@romer-Z550MA:~/Documentos/api/destino$ docker ps
  117. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  118. romer@romer-Z550MA:~/Documentos/api/destino$ docker
  119.  
  120. romer@romer-Z550MA:~$ sudo service docker start
  121. [sudo] senha para romer:
  122. romer@romer-Z550MA:~$ docker images
  123. REPOSITORY TAG IMAGE ID CREATED SIZE
  124. my-apache2 latest 4c081bd9365b 2 hours ago 138MB
  125. romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
  126. <none> <none> 32921b908719 14 hours ago 1.04GB
  127. python latest 1e76b28bfd4e 8 days ago 911MB
  128. httpd 2.4 c8ca530172a8 8 days ago 138MB
  129. python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
  130. hello-world latest d1165f221234 5 months ago 13.3kB
  131. mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
  132. django latest eb40dcf64078 4 years ago 436MB
  133. romer@romer-Z550MA:~$ cd chanceler
  134. bash: cd: chanceler: Arquivo ou diretório inexistente
  135. romer@romer-Z550MA:~$ ls
  136. 'Área de Trabalho' Downloads Modelos Público Vídeos
  137. Documentos Imagens Música snap
  138. romer@romer-Z550MA:~$ cd Documentos
  139. romer@romer-Z550MA:~/Documentos$ ls
  140. api chanceler
  141. romer@romer-Z550MA:~/Documentos$ cd chanceler
  142. romer@romer-Z550MA:~/Documentos/chanceler$ ls
  143. cp
  144. romer@romer-Z550MA:~/Documentos/chanceler$ cd cp
  145. romer@romer-Z550MA:~/Documentos/chanceler/cp$ cd ../../api
  146. romer@romer-Z550MA:~/Documentos/api$ ls
  147. base bd clock converte-medidas cpf lua verifica-email
  148. romer@romer-Z550MA:~/Documentos/api$ cd clock
  149. romer@romer-Z550MA:~/Documentos/api/clock$ ls
  150. conta.py Dockerfile Dockerfile.save public-html
  151. romer@romer-Z550MA:~/Documentos/api/clock$ nano Dockerfile
  152. romer@romer-Z550MA:~/Documentos/api/clock$ docker build . -t clock
  153. Sending build context to Docker daemon 4.608kB
  154. Step 1/2 : FROM httpd:2.4
  155. ---> c8ca530172a8
  156. Step 2/2 : COPY ./public-html/ /usr/local/apache2/htdocs/
  157. ---> Using cache
  158. ---> 4c081bd9365b
  159. Successfully built 4c081bd9365b
  160. Successfully tagged clock:latest
  161. romer@romer-Z550MA:~/Documentos/api/clock$ docker images
  162. REPOSITORY TAG IMAGE ID CREATED SIZE
  163. clock latest 4c081bd9365b 2 hours ago 138MB
  164. my-apache2 latest 4c081bd9365b 2 hours ago 138MB
  165. romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
  166. <none> <none> 32921b908719 14 hours ago 1.04GB
  167. python latest 1e76b28bfd4e 8 days ago 911MB
  168. httpd 2.4 c8ca530172a8 8 days ago 138MB
  169. python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
  170. hello-world latest d1165f221234 5 months ago 13.3kB
  171. mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
  172. django latest eb40dcf64078 4 years ago 436MB
  173. romer@romer-Z550MA:~/Documentos/api/clock$ docker run python
  174. romer@romer-Z550MA:~/Documentos/api/clock$ docker ps
  175. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  176. romer@romer-Z550MA:~/Documentos/api/clock$ docker ps -a
  177. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  178. 3f1ce17a956d python "python3" 18 seconds ago Exited (0) 13 seconds ago boring_hofstadter
  179. 15f56416cc73 my-apache2 "httpd-foreground" 2 hours ago Exited (0) About an hour ago my-running-app
  180. f81adf89b085 django "python3" 3 hours ago Exited (0) 3 hours ago hopeful_driscoll
  181. 98b31eced5a4 python "python3" 3 hours ago Exited (0) 3 hours ago flamboyant_galileo
  182. 3417ce190523 django "python3" 3 hours ago Exited (0) 3 hours ago agitated_dhawan
  183. 744cb4f47a7c django "python3" 3 hours ago Exited (0) 3 hours ago sleepy_bhabha
  184. a26fbb10b8fc django "python3" 3 hours ago Exited (0) 3 hours ago agitated_beaver
  185. f7b379e4e005 python "python3" 3 hours ago Exited (0) 3 hours ago pedantic_lehmann
  186. 14e3c62cbc2c python "python3" 3 hours ago Exited (0) 3 hours ago lucid_franklin
  187. ed64c7fd6eea 32921b908719 "python3" 3 hours ago Exited (0) 3 hours ago laughing_turing
  188. ed3bc579a181 python "python3" 4 hours ago Exited (0) 4 hours ago sad_turing
  189. faa257836f3d 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_panini
  190. b37b4355fef0 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_wescoff
  191. 666d4bbc7a22 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago dazzling_hermann
  192. 974fdaa6e51a python "python3" 4 hours ago Exited (0) 4 hours ago zen_bose
  193. 9b0001afe8f3 hello-world "/hello" 4 hours ago Exited (0) 4 hours ago nostalgic_taussig
  194. cd0646a26d5f mhndev/docker-lua "run -v" 4 hours ago Created blissful_yalow
  195. 5d14801de19a b1831f760c12 "run -v" 4 hours ago Created keen_dirac
  196. 7a23ce2bdd0a b1831f760c12 "run -v" 4 hours ago Created wonderful_bassi
  197. 2cfa85ce32b8 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago romantic_visvesvaraya
  198. 73e6195a144c 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago busy_pare
  199. 17152a18d68a 9231c59cd582 "python3" 4 hours ago Exited (0) 4 hours ago sleepy_panini
  200. 0c4c9b47abcb mhndev/docker-lua "run -v" 4 hours ago Created hungry_greider
  201. 382b9668fbe2 romer/chanceler "python3 run.py" 6 hours ago Exited (1) 5 hours ago condescending_swanson
  202. 0d725185b2fb romer/chanceler "python3 run.py" 6 hours ago Exited (1) 6 hours ago elastic_albattani
  203. 07af063c37f9 python "python3" 2 days ago Exited (0) 2 days ago heuristic_faraday
  204. dd94928483f4 hello-world "/hello" 2 days ago Exited (0) 2 days ago bold_tu
  205. 64c73903043a hello-world "/hello" 2 days ago Exited (0) 2 days ago wizardly_goldwasser
  206. romer@romer-Z550MA:~/Documentos/api/clock$ docker run python
  207. romer@romer-Z550MA:~/Documentos/api/clock$ docker run python -it
  208. 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.
  209. ERRO[0004] error waiting for container: context canceled
  210. romer@romer-Z550MA:~/Documentos/api/clock$ docker run -it python
  211. Python 3.9.6 (default, Aug 17 2021, 15:37:33)
  212. [GCC 10.2.1 20210110] on linux
  213. Type "help", "copyright", "credits" or "license" for more information.
  214. >>> import conta
  215. Traceback (most recent call last):
  216. File "<stdin>", line 1, in <module>
  217. ModuleNotFoundError: No module named 'conta'
  218. >>> import os
  219. >>> os.system('ls')
  220. bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
  221. 0
  222. >>> os.system('ls usr')
  223. bin games include lib libexec local sbin share src
  224. 0
  225. >>> os.system('ls root')
  226. 0
  227. >>>
  228. KeyboardInterrupt
  229. >>>
  230. KeyboardInterrupt
  231. >>> os.exit()
  232. Traceback (most recent call last):
  233. File "<stdin>", line 1, in <module>
  234. AttributeError: module 'os' has no attribute 'exit'
  235. >>> exit
  236. Use exit() or Ctrl-D (i.e. EOF) to exit
  237. >>>
  238. romer@romer-Z550MA:~/Documentos/api/clock$ docker run -it python
  239. Python 3.9.6 (default, Aug 17 2021, 15:37:33)
  240. [GCC 10.2.1 20210110] on linux
  241. Type "help", "copyright", "credits" or "license" for more information.
  242. >>> from os import system as s
  243. >>> s('pip freeze')
  244. 0
  245. >>> s('pip3 freeze')
  246. 0
  247. >>> s('pip list')
  248. Package Version
  249. ---------- -------
  250. pip 21.2.4
  251. setuptools 57.4.0
  252. wheel 0.37.0
  253. 0
  254. >>>
  255. romer@romer-Z550MA:~/Documentos/api/clock$ cd ../helloworld
  256. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
  257. Sending build context to Docker daemon 3.072kB
  258. Step 1/4 : FROM python:3
  259. 3: Pulling from library/python
  260. Digest: sha256:2bd64896cf4ff75bf91a513358457ed09d890715d9aa6bb602323aedbee84d14
  261. Status: Downloaded newer image for python:3
  262. ---> 1e76b28bfd4e
  263. Step 2/4 : WORKDIR /app
  264. ---> Running in 99e9d33d609b
  265. Removing intermediate container 99e9d33d609b
  266. ---> 9e0bbbfb4587
  267. Step 3/4 : COPY . .
  268. ---> f7db64ac0f21
  269. Step 4/4 : CMD ['python', '.program.py']
  270. ---> Running in 025e2b1e4b6a
  271. Removing intermediate container 025e2b1e4b6a
  272. ---> f924456e265e
  273. Successfully built f924456e265e
  274. Successfully tagged hw2:latest
  275. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
  276. /bin/sh: 1: [python,: not found
  277. romer@romer-Z550MA:~/Documentos/api/helloworld$ ls
  278. Dockerfile program.py
  279. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
  280. ^[[A^[[A/bin/sh: 1: [python,: not found
  281. ^[[A^[[Aromer@romer-Z550MA:~/Documentos/api/helloworld$ ocker build . -t hw2
  282.  
  283. Comando 'ocker' não encontrado, você quis dizer:
  284.  
  285. comando 'docker' do snap docker (19.03.13)
  286. comando 'docker' do deb docker.io (20.10.7-0ubuntu1~20.04.1)
  287.  
  288. Veja 'snap info <snapname>' para versões adicionais.
  289.  
  290. ^[[Dromer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
  291. Sending build context to Docker daemon 3.072kB
  292. Step 1/4 : FROM python:3
  293. ---> 1e76b28bfd4e
  294. Step 2/4 : WORKDIR /app
  295. ---> Using cache
  296. ---> 9e0bbbfb4587
  297. Step 3/4 : COPY . .
  298. ---> 771dce4b0577
  299. Step 4/4 : CMD ['python', './program.py']
  300. ---> Running in d19d0fcea720
  301. Removing intermediate container d19d0fcea720
  302. ---> ef46dad85339
  303. Successfully built ef46dad85339
  304. Successfully tagged hw2:latest
  305. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
  306. /bin/sh: 1: [python,: not found
  307. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
  308. Sending build context to Docker daemon 3.072kB
  309. Step 1/4 : FROM python:3
  310. ---> 1e76b28bfd4e
  311. Step 2/4 : WORKDIR /app
  312. ---> Using cache
  313. ---> 9e0bbbfb4587
  314. Step 3/4 : COPY . .
  315. ---> 9093608405db
  316. Step 4/4 : CMD [ "python", "./program.py" ]
  317.  
  318. ---> Running in 15c0aa1f2221
  319. Removing intermediate container 15c0aa1f2221
  320. ---> f4b6f5c5ff71
  321. Successfully built f4b6f5c5ff71
  322. Successfully tagged hw2:latest
  323. romer@romer-Z550MA:~/Documentos/api/helloworld$
  324. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -it -t hw2
  325. Hello World
  326. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker images
  327. REPOSITORY TAG IMAGE ID CREATED SIZE
  328. hw2 latest f4b6f5c5ff71 27 seconds ago 911MB
  329. <none> <none> ef46dad85339 About a minute ago 911MB
  330. <none> <none> f924456e265e 4 minutes ago 911MB
  331. clock latest 4c081bd9365b 2 hours ago 138MB
  332. my-apache2 latest 4c081bd9365b 2 hours ago 138MB
  333. romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
  334. <none> <none> 32921b908719 14 hours ago 1.04GB
  335. python 3 1e76b28bfd4e 8 days ago 911MB
  336. python latest 1e76b28bfd4e 8 days ago 911MB
  337. httpd 2.4 c8ca530172a8 8 days ago 138MB
  338. python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
  339. hello-world latest d1165f221234 5 months ago 13.3kB
  340. mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
  341. django latest eb40dcf64078 4 years ago 436MB
  342. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker ps
  343. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  344. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker ps -a
  345. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  346. 894d976668a4 hw2 "python ./program.py" 36 seconds ago Exited (0) 33 seconds ago trusting_almeida
  347. 419a0975d0ae ef46dad85339 "/bin/sh -c '['pytho…" 2 minutes ago Exited (127) About a minute ago vibrant_mirzakhani
  348. 0f8fdedf2c7e f924456e265e "/bin/sh -c '['pytho…" 2 minutes ago Exited (127) 2 minutes ago adoring_cartwright
  349. 3f219ab979e4 f924456e265e "/bin/sh -c '['pytho…" 3 minutes ago Exited (127) 3 minutes ago inspiring_morse
  350. 2ef5352fb67b python "python3" 13 minutes ago Exited (0) 5 minutes ago hopeful_lehmann
  351. be1d810b813b python "python3" 15 minutes ago Exited (0) 13 minutes ago elegant_dewdney
  352. 812cb64174a1 python "-it" 15 minutes ago Created stoic_northcutt
  353. a34cce71746f python "python3" 15 minutes ago Exited (0) 15 minutes ago charming_torvalds
  354. 3f1ce17a956d python "python3" 16 minutes ago Exited (0) 16 minutes ago boring_hofstadter
  355. 15f56416cc73 my-apache2 "httpd-foreground" 2 hours ago Exited (0) 2 hours ago my-running-app
  356. f81adf89b085 django "python3" 3 hours ago Exited (0) 3 hours ago hopeful_driscoll
  357. 98b31eced5a4 python "python3" 3 hours ago Exited (0) 3 hours ago flamboyant_galileo
  358. 3417ce190523 django "python3" 3 hours ago Exited (0) 3 hours ago agitated_dhawan
  359. 744cb4f47a7c django "python3" 3 hours ago Exited (0) 3 hours ago sleepy_bhabha
  360. a26fbb10b8fc django "python3" 3 hours ago Exited (0) 3 hours ago agitated_beaver
  361. f7b379e4e005 python "python3" 3 hours ago Exited (0) 3 hours ago pedantic_lehmann
  362. 14e3c62cbc2c python "python3" 4 hours ago Exited (0) 3 hours ago lucid_franklin
  363. ed64c7fd6eea 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago laughing_turing
  364. ed3bc579a181 python "python3" 4 hours ago Exited (0) 4 hours ago sad_turing
  365. faa257836f3d 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_panini
  366. b37b4355fef0 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago silly_wescoff
  367. 666d4bbc7a22 32921b908719 "python3" 4 hours ago Exited (0) 4 hours ago dazzling_hermann
  368. 974fdaa6e51a python "python3" 4 hours ago Exited (0) 4 hours ago zen_bose
  369. 9b0001afe8f3 hello-world "/hello" 4 hours ago Exited (0) 4 hours ago nostalgic_taussig
  370. cd0646a26d5f mhndev/docker-lua "run -v" 4 hours ago Created blissful_yalow
  371. 5d14801de19a b1831f760c12 "run -v" 4 hours ago Created keen_dirac
  372. 7a23ce2bdd0a b1831f760c12 "run -v" 4 hours ago Created wonderful_bassi
  373. 2cfa85ce32b8 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago romantic_visvesvaraya
  374. 73e6195a144c 1acd9bd53a23 "python3 run.py" 4 hours ago Exited (1) 4 hours ago busy_pare
  375. 17152a18d68a 9231c59cd582 "python3" 4 hours ago Exited (0) 4 hours ago sleepy_panini
  376. 0c4c9b47abcb mhndev/docker-lua "run -v" 4 hours ago Created hungry_greider
  377. 382b9668fbe2 romer/chanceler "python3 run.py" 6 hours ago Exited (1) 6 hours ago condescending_swanson
  378. 0d725185b2fb romer/chanceler "python3 run.py" 6 hours ago Exited (1) 6 hours ago elastic_albattani
  379. 07af063c37f9 python "python3" 2 days ago Exited (0) 2 days ago heuristic_faraday
  380. dd94928483f4 hello-world "/hello" 2 days ago Exited (0) 2 days ago bold_tu
  381. 64c73903043a hello-world "/hello" 2 days ago Exited (0) 2 days ago wizardly_goldwasser
  382. romer@romer-Z550MA:~/Documentos/api/helloworld$ nano ../clock/conta.py
  383. romer@romer-Z550MA:~/Documentos/api/helloworld$ mv ../clock/conta.py conta.py
  384. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker build . -t hw2
  385. Sending build context to Docker daemon 4.096kB
  386. Step 1/4 : FROM python:3
  387. ---> 1e76b28bfd4e
  388. Step 2/4 : WORKDIR /app
  389. ---> Using cache
  390. ---> 9e0bbbfb4587
  391. Step 3/4 : COPY . .
  392. ---> 03a33aa7de44
  393. Step 4/4 : CMD [ "python", "./conta.py" ]
  394. ---> Running in 9c61c686f3cc
  395. Removing intermediate container 9c61c686f3cc
  396. ---> b96ff9dcdbe3
  397. Successfully built b96ff9dcdbe3
  398. Successfully tagged hw2:latest
  399. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run -t hw2
  400. ^CTraceback (most recent call last):
  401. File "/app/./conta.py", line 3, in <module>
  402. sleep(1)
  403. KeyboardInterrupt
  404. romer@romer-Z550MA:~/Documentos/api/helloworld$ ^C
  405. romer@romer-Z550MA:~/Documentos/api/helloworld$ docker run --publish 8000:8000 node-dockerromer@romer-Z550MA:~$ sudo service docker start
  406. docker: invalid reference format: repository name must be lowercase.
  407. See 'docker run --help'.
  408. romer@romer-Z550MA:~/Documentos/api/helloworld$ [sudo] senha para romer:
  409. [sudo]: comando não encontrado
  410. romer@romer-Z550MA:~/Documentos/api/helloworld$ romer@romer-Z550MA:~$ docker images
  411. romer@romer-Z550MA:~$: comando não encontrado
  412. romer@romer-Z550MA:~/Documentos/api/helloworld$ REPOSITORY TAG IMAGE ID CREATED SIZE
  413. REPOSITORY: comando não encontrado
  414. romer@romer-Z550MA:~/Documentos/api/helloworld$ my-apache2 latest 4c081bd9365b 2 hours ago 138MB
  415. my-apache2: comando não encontrado
  416. romer@romer-Z550MA:~/Documentos/api/helloworld$ romer/chanceler latest 1acd9bd53a23 14 hours ago 245MB
  417. bash: romer/chanceler: Arquivo ou diretório inexistente
  418. romer@romer-Z550MA:~/Documentos/api/helloworld$ <none> <none> 32921b908719 14 hours ago 1.04GB
  419. bash: erro de sintaxe próximo ao token inesperado `<'
  420. romer@romer-Z550MA:~/Documentos/api/helloworld$ python latest 1e76b28bfd4e 8 days ago 911MB
  421.  
  422. Comando 'python' não encontrado, você quis dizer:
  423.  
  424. comando 'python3' do deb python3
  425. comando 'python' do deb python-is-python3
  426.  
  427. romer@romer-Z550MA:~/Documentos/api/helloworld$ httpd 2.4 c8ca530172a8 8 days ago 138MB
  428.  
  429. Comando 'httpd' não encontrado, você quis dizer:
  430.  
  431. comando 'http' do snap http (2.4.0)
  432. comando 'xttpd' do deb xtide (2.13.2-1build2)
  433. comando 'http' do deb httpie (1.0.3-2)
  434.  
  435. Veja 'snap info <snapname>' para versões adicionais.
  436.  
  437. romer@romer-Z550MA:~/Documentos/api/helloworld$ python 3.7-alpine 9231c59cd582 13 days ago 41.9MB
  438.  
  439. Comando 'python' não encontrado, você quis dizer:
  440.  
  441. comando 'python3' do deb python3
  442. comando 'python' do deb python-is-python3
  443.  
  444. romer@romer-Z550MA:~/Documentos/api/helloworld$ hello-world latest d1165f221234 5 months ago 13.3kB
  445.  
  446. Comando 'hello-world' não encontrado, mas poder ser instalado com:
  447.  
  448. sudo snap install hello-world
  449.  
  450. romer@romer-Z550MA:~/Documentos/api/helloworld$ mhndev/docker-lua latest b1831f760c12 3 years ago 904MB
  451. bash: mhndev/docker-lua: Arquivo ou diretório inexistente
  452. romer@romer-Z550MA:~/Documentos/api/helloworld$ django latest eb40dcf64078 4 years ago 436MB
  453. django: comando não encontrado
  454. romer@romer-Z550MA:~/Documentos/api/helloworld$ romer@romer-Z550MA:~$ cd chanceler
  455. romer@romer-Z550MA:~$: comando não encontrado
  456. romer@romer-Z550MA:~/Documentos/api/helloworld$ bash: cd: chanceler: Arquivo ou diretório inexistente
  457.  
  458. Comando 'bash:' não encontrado, você quis dizer:
  459.  
  460. comando 'bash' do deb bash (5.0-6ubuntu1.1)
  461.  
  462. Experimente: sudo apt install <deb name>
  463.  
  464. romer@romer-Z550MA:~/Documentos/api/helloworld$ romer@romer-Z550MA:~$ ls
  465. romer@romer-Z550MA:~$: comando não encontrado
  466. romer@romer-Z550MA:~/Documentos/api/helloworld$ 'Área de Trabalho' Downloads Modelos Público Vídeos
  467. Área de Trabalho: comando não encontrado
  468. romer@romer-Z550MA:~/Documentos/api/helloworld$ Documentos Imagens Música snap
  469. ^Z
  470. [1]+ Parado Documentos Imagens Música snap
  471. romer@romer-Z550MA:~/Documentos/api/helloworld$
  472.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement