# Trouble installing Docker and Git

**URL:** <https://meta.discourse.org/t/trouble-installing-docker-and-git/113037>\
**Category:** Self-hosting\
**Created:** [March 31, 2019, 3:06am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037 "2019-03-31T03:06:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lastarbucks](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@lastarbucks](https://meta.discourse.org/u/lastarbucks)\
**Post date:** [March 31, 2019, 3:06am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/1 "2019-03-31T03:06:08Z")

</div>

After I type in as root user:

```
wget -qO- https://get.docker.com/ | sh

```

I get this message:

```
Executing docker install script, commit: cfba462

```

After 2 seconds, Linux doesn’t seem to install. No error messages or anything. It just seems like nothing is happening.

---

<div class="post-metadata">

**Author:** ![Simsnet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simsnet/32/72855_2.png) [@Simsnet](https://meta.discourse.org/u/Simsnet)\
**Post date:** [March 31, 2019, 3:11am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/2 "2019-03-31T03:11:43Z")

</div>

A common thing inside of Linux is that once a command has completed, then the cursor goes to the next line to await the next command.

The command you ran was `wget` and the flag you had at the end was `-qO-`.

This tells WGET to not output anything to the console, and to end the program once the download is complete. Nothing is wrong, it’s just silent. To make it output statuses to the console, remove the flag at the end. This applies for every WGET download.

---

<div class="post-metadata">

**Author:** ![lastarbucks](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@lastarbucks](https://meta.discourse.org/u/lastarbucks)\
**Post date:** [March 31, 2019, 3:13am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/3 "2019-03-31T03:13:00Z")

</div>

how do i know it’s completed? I’ve waited 10 minutes and when I typed in git --version, it tells me that git command is not found

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [March 31, 2019, 3:13am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/4 "2019-03-31T03:13:04Z")

</div>

On what operating system and version? Is this real hardware or virtualized?

---

<div class="post-metadata">

**Author:** ![Simsnet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simsnet/32/72855_2.png) [@Simsnet](https://meta.discourse.org/u/Simsnet)\
**Post date:** [March 31, 2019, 3:14am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/5 "2019-03-31T03:14:55Z")

</div>

Another question to add on with codinghorror’s:

Did you run `apt update` and `apt upgrade` upon starting the installation? This should install most needed components.

---

<div class="post-metadata">

**Author:** ![lastarbucks](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@lastarbucks](https://meta.discourse.org/u/lastarbucks)\
**Post date:** [March 31, 2019, 3:28am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/6 "2019-03-31T03:28:23Z")

</div>

I’m running Amazon Linux on AWS EC2. I guess I can manually install Git and Docker.  
The wget command doesn’t work in AWS.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [March 31, 2019, 3:36am UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/7 "2019-03-31T03:36:28Z")

</div>

That guide is for Ubuntu. It may not work in Amazon Linux.

---

<div class="post-metadata">

**Author:** ![lastarbucks](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@lastarbucks](https://meta.discourse.org/u/lastarbucks)\
**Post date:** [April 2, 2019, 4:27pm UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/8 "2019-04-02T16:27:24Z")

</div>

Thanks. I just installed on DigitalOcean and now works perfectly fine. Looks like AWS Amazon Linux doesn’t work with Discourse.

---

<div class="post-metadata">

**Author:** ![Corsterix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/corsterix/32/135849_2.png) [@Corsterix](https://meta.discourse.org/u/Corsterix)\
**Post date:** [April 2, 2019, 4:32pm UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037/9 "2019-04-02T16:32:30Z")

</div>

It works fine on AWS both on the host directly and also in an LXD container as long as you launch the right AWS image. I have multiple Discourse installs running in LXD on AWS.

Use this image on AWS: Ubuntu Server 18.04 LTS (HVM), SSD Volume Type - ami-0a313d6098716f372 (64-bit x86) / ami-01ac7d9c1179d7b74 (64-bit Arm)

I also recommend following the official Docker install guide:

> **[Install Docker Engine on Ubuntu](https://docs.docker.com/engine/install/ubuntu/)**
>
> Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.
