Sadly since I removed my two nodes from default env and trying to add it to the new env, rancher agent isn’t working anymore and failing with a weird error (docker logs) :
Found container ID: 37d3fba500108e4539d9e18afd68202edd1ecf743e66dd14a1ba797db25dea23
Checking root: /host/run/runc
Checking file: 22dfb3a3cbc5dd5b461fd4821942b30fc3ad1e1442413c2a450411780b78181e
Checking file: 37d3fba500108e4539d9e18afd68202edd1ecf743e66dd14a1ba797db25dea23
Found state.json: 37d3fba500108e4539d9e18afd68202edd1ecf743e66dd14a1ba797db25dea23
time=“2017-06-30T09:18:57Z” level=fatal msg=“json: cannot unmarshal object into Go value of type string”
Ok I found the source of the error. My box was upgraded to docker 17.06.0~ce-0~debian which is not supported.
downgrading to 17.03.2~ce-0~debian-jessie seems working.