jeffutter / collectd-graphite-docker

7 stars 7 forks source link

Error on build: failed to create symbolic link `/sbin/initctl': File exists #1

Open mustafaakin opened 10 years ago

mustafaakin commented 10 years ago
$ docker build -t graphite github.com/jeffutter/collectd-graphite-docker
Step 0 : FROM      ubuntu
 ---> 9cd978db300e
Step 1 : MAINTAINER Jeffery Utter "jeff@jeffutter.com"
 ---> Running in 52840a7bfcc9
 ---> b99e6b32ae66
Step 2 : RUN dpkg-divert --local --rename --add /sbin/initctl
 ---> Running in 1a06560d45fb
Leaving 'local diversion of /sbin/initctl to /sbin/initctl.distrib'
 ---> 13291a24b296
Step 3 : RUN ln -s /bin/true /sbin/initctl
 ---> Running in 37ccfe5cda1f
failed to create symbolic link `/sbin/initctl': File exists
2014/02/28 12:29:24 build: The command [/bin/sh -c ln -s /bin/true /sbin/initctl] returned a non-zero code: 255
$ docker version
Client version: 0.8.1
Go version (client): go1.2
Git commit (client): a1598d1
Server version: 0.8.1
Git commit (server): a1598d1
Go version (server): go1.2
Last stable version: 0.8.1
$ uname -a
Linux C3PO 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:52:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Do you have any idea?

xlab commented 9 years ago

The same error.

jeffutter commented 9 years ago

This was due to something that was needed in really old versions of docker that is no longer needed. I've removed the conflicting commands from the Dockerfile.

This being said, I don't actively use this dockerfile anymore. I am more than glad to field questions as best I can and take pull requests but I can make no guarantees as to it working properly.

xlab commented 9 years ago

I've managed to resolve any issue but collectd feels redundant here. Also scripts are pretty complex and can break from time to time if python/django versions aren't locked up.

I prefer this image https://github.com/nickstenning/docker-graphite. However it needs to be updated also. So I added my patches and ended up with this image https://github.com/missionMeteora/graphite-carbon-docker that currently being used in our production.