# General or per host "newsfeed" & "ghost containers"

**URL:** <https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505>\
**Category:** Rancher 1.x\
**Created:** [January 21, 2016, 6:12pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505 "2016-01-21T18:12:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [January 21, 2016, 6:12pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/1 "2016-01-21T18:12:26Z")

</div>

Hi,

I have a suggestion and also a weird case to reprt… The suggestion is to have a place to view a container newsfeed, or an entire host’s “newsfeed” or environment “news feed”… basically it is similar to the logs, but showing information from Rancher and the container launch process… I see the container “step” whenever I launch a container displayed under the container name in the hosts view, but its really small field showing only the first part of whatever is happening… I’d like to be able to see the entire process, and also to be able to look back a bit…

One situation which I see happening is that sometimes containers are launched over and over, and at one point become “orphans” or “ghosts”…

Is there any way to remove containers in mass?

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/f808ecc69266ce86b59864b93a9e2eee116b6436.png) ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/c4a5cc690ab318056753c598477d08fea3133081.png) ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/884fbd2dc11696f3e9fd7cb1dccd3498f6858202.png) ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/b1d1e169add5d504651fc7a7095062d172f9f22a.png)

If I look inside one of these containers, its apparently a failed build command from the docker image… I’m unsure why they got there (esp since I’m always using rancher-compose to send a complete stack), but sometimes I do notice a container being created/recreated during a build process… Usually the “old one” gets purged out, but something happened…

Further on my “general log” idea it would be interesting (IMO) to see a combination of what rancher receives as commands (this is already in the audit log), but also what happens after… a sort of semi-verbose log aggregation of what rancher is doing… sometimes I think a service failed to launch, and then a couple of minutes later it starts up the containers, or missing containers… I’m always a bit stumped: was rancher doing something? was a timeout triggered? was it a healthcheck that made it “heal” the broken service? Some sort of visibility would be nice I think? If others are accomplishing this in some other way please share 🙂

---

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [January 26, 2016, 7:48pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/2 "2016-01-26T19:48:22Z")

</div>

Still getting “ghost containers”… I think they may be related to the build process, or to the S3 build process in particular…

I started from scratch and already have since starting tests this morning on the latest version abt 15 “ghost” containers… some containers are added and then trashed in the build process, others are just being added and “sticking”…  
 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/0196a3566b67be36e49e9da00bb6a1d548b3243a.png)

If I look into the logs, here are some examples, which seem to validate my build theory…

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/6a57e24ecbabdd695bf3da2c9d47f3b959f0b36d.png)  
 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/108fd9aeff39d3b6f8dddd5b159155779f1b4d37.png)

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [January 26, 2016, 8:06pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/3 "2016-01-26T20:06:25Z")

</div>

What version of rancher-compose are you using?

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [January 26, 2016, 8:07pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/4 "2016-01-26T20:07:51Z")

</div>

We fixed this issue where we weren’t removing containers during the build.

> <https://github.com/rancher/rancher/issues/2829>
>
> While using the example flask app from http://docs.rancher.com/rancher/rancher-compose/build/ I have noticed that the containers used for building the actual stack are...

But your issue might cause ghost containers to be created:

> <https://github.com/rancher/rancher/issues/2137>
>
> Component Version
> Rancher v0.39.0-rc1
> Cattle v0.95.0
> User Interface v0.52.0
> Rancher Compose beta/latest
> With rancher-compose version v0.4.0, tried to create a service that builds locally. It uploaded...

---

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [January 26, 2016, 8:10pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/5 "2016-01-26T20:10:08Z")

</div>

Hi @denise I’m not sure what version I was on last week, but it was downloaded from the UI… right now I’m on:  
 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/55cfd1bf3d85f0e4df79a8c78f57dc992fb9e6d8.png)  
(I did update rancher-compose cli when I created the rancher/server and rancher agent machines…)

I’m not getting the reconnecting state as long as I use another OS for host. Last time I checked using rancheros it would always knock it out… So I switched to core-os for my tests…

---

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [January 26, 2016, 8:45pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/6 "2016-01-26T20:45:28Z")

</div>

I’ve just noticed the release notes state incompatibility with coreos… I missed that… I’ll hold off in testing until another release is out then… I’m seeing connectivity issues between hosts which I guess I’ll attribute to this…

---

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [January 29, 2016, 7:19pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/7 "2016-01-29T19:19:02Z")

</div>

@denise just an FYI, I’m still getting “ghost” containers on 0.56.1. This is now again on CoreOS and the hosts arent in reconnecting or anything…

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [February 3, 2016, 7:47pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/8 "2016-02-03T19:47:23Z")

</div>

I’m not sure how you didn’t hit this issue. 🙂 Anytime I try to run a `build`, I end up getting my hosts into reconnecting and because of the reconnecting stage, I’ll get some random containers from it.

> <https://github.com/rancher/rancher/issues/2137>
>
> Component Version
> Rancher v0.39.0-rc1
> Cattle v0.95.0
> User Interface v0.52.0
> Rancher Compose beta/latest
> With rancher-compose version v0.4.0, tried to create a service that builds locally. It uploaded...

---

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [February 15, 2016, 8:22pm UTC](https://forums.suse.com/t/general-or-per-host-newsfeed-ghost-containers/1505/9 "2016-02-15T20:22:46Z")

</div>

I get hosts going to reconnecting whenever I try using rancheros, but with coreos it was ok… I hope I dont jynx myself 😛
