Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Não consigo seguir por conta desta situação:

C:\Users\Lucas>docker run -it ubuntu bash root@e5c4966d59a1:/# apt-get update && install apache2 Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial/main Sources [1103 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [5179 B] Get:6 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [298 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2815 B] Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [180 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [632 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [12.4 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [556 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-security/main Sources [76.5 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-security/restricted Sources [2392 B] Get:18 http://archive.ubuntu.com/ubuntu xenial-security/universe Sources [27.6 kB] Get:19 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [289 kB] Get:20 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.0 kB] Get:21 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [117 kB] Fetched 25.0 MB in 1min 36s (259 kB/s) Reading package lists... Done install: missing destination file operand after 'apache2' Try 'install --help' for more information. root@e5c4966d59a1:/#

2 respostas

C:\Users\Lucas>docker version Client: Version: 17.03.0-ce API version: 1.26 Go version: go1.7.5 Git commit: 60ccb22 Built: Thu Feb 23 10:40:59 2017 OS/Arch: windows/amd64

Server: Version: 17.03.0-ce API version: 1.26 (minimum version 1.12) Go version: go1.7.5 Git commit: 3a232c8 Built: Tue Feb 28 07:52:04 2017 OS/Arch: linux/amd64 Experimental: true

solução!

Lucas,

Verifique o comando. Aparentemente ficou faltando o "apt-get" no seu comando.

apt-get update && apt-get install apache2

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software