# "launcher rebuild" fails because of "ip addr show docker0"

**URL:** https://meta.discourse.org/t/launcher-rebuild-fails-because-of-ip-addr-show-docker0/43613
**Category:** Bug
**Created:** [Maio 3, 2016, 3:16pm UTC](https://meta.discourse.org/t/launcher-rebuild-fails-because-of-ip-addr-show-docker0/43613 "2016-05-03T15:16:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![julienmalik](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@julienmalik](https://meta.discourse.org/u/julienmalik)
#### Post date: [Maio 3, 2016, 3:16pm UTC](https://meta.discourse.org/t/launcher-rebuild-fails-because-of-ip-addr-show-docker0/43613/1 "2016-05-03T15:16:26Z")

</div>

I just tried to rebuild my container and hit the following error :

```plaintext
# ./launcher rebuild myforum
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker.io stop -t 10 myforum
myforum
cd /pups && git pull && /pups/bin/pups --stdin
Unable to find image '10.0.42.1:latest' locally
Pulling repository 10.0.42.1
FATA[0001] Error: image library/10.0.42.1:latest not found 
cat: cids/myforum_bootstrap.cid: No such file or directory
docker: "rm" requires a minimum of 1 argument. See '/usr/bin/docker.io rm --help'.
rm: cannot remove ‘cids/myforum_bootstrap.cid’: No such file or directory
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

I tracked this down to launcher#L78-L80

On my machine I get :

```plaintext
$ ip addr show docker0
3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 56:84:7a:fe:97:99 brd ff:ff:ff:ff:ff:ff
    inet 172.17.42.1/16 scope global docker0
       valid_lft forever preferred_lft forever
    inet 10.0.42.1/16 scope global docker0
       valid_lft forever preferred_lft forever

$ ip addr show docker0 |grep 'inet ' | awk '{ split($2,a,"/"); print a[1] }'
172.17.42.1
10.0.42.1

```

which makes the launcher#L499 line fail badly with the cryptic error message above :

Here are some info about my system :

```plaintext
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.4 LTS
Release:	14.04
Codename:	trusty

$ aptitude show docker.io | grep ^Version
Version: 1.6.2~dfsg1-1ubuntu4~14.04.1

```

docker is used exclusively to run discourse.  
I’m using discourse since more than a year, and have successfullly run `launcher rebuild` in the past. I just hit this issue today, trying to update my container.

---

<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: [Maio 3, 2016, 3:20pm UTC](https://meta.discourse.org/t/launcher-rebuild-fails-because-of-ip-addr-show-docker0/43613/2 "2016-05-03T15:20:10Z")

</div>

Is this because your Docker version is so old at 1.6? I suggest updating Docker.

---

<div class="post-metadata">

### Author: ![julienmalik](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@julienmalik](https://meta.discourse.org/u/julienmalik)
#### Post date: [Maio 3, 2016, 6:18pm UTC](https://meta.discourse.org/t/launcher-rebuild-fails-because-of-ip-addr-show-docker0/43613/3 "2016-05-03T18:18:26Z")

</div>

Updating docker to 1.11 was painful but fixes this.

but maybe the ip / grep / awk magic requires some extra security to avoid the strange message long after.

---

<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: [Maio 3, 2016, 6:32pm UTC](https://meta.discourse.org/t/launcher-rebuild-fails-because-of-ip-addr-show-docker0/43613/4 "2016-05-03T18:32:05Z")

</div>

OK, good to know – I will make “minimum required docker verson” 1.8 for launcher (it was previously 1.6) right now, and see if that helps anyone in the future.

> **[Home](https://github.com/moby/moby/wiki)**
>
> The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems - moby/moby

---

<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: [Fevereiro 27, 2017, 6:27am UTC](https://meta.discourse.org/t/launcher-rebuild-fails-because-of-ip-addr-show-docker0/43613/5 "2017-02-27T06:27:44Z")

</div>


