Closed TheLinuxGuy closed 5 years ago
Modifying sandbox/images/influxdb/latest/Dockerfile and putting FROM as the first line changes the error to a different one:
Step 1/2 : FROM influxdb:$INFLUXDB_TAG ERROR: Service 'influxdb' failed to build: Error parsing reference: "influxdb:$INFLUXDB_TAG" is not a valid repository/ [root@portainer sandbox]#
Running all these before re-attempting did not fix it either:
[root@portainer sandbox]# export TELEGRAF_TAG=latest [root@portainer sandbox]# export INFLUXDB_TAG=latest [root@portainer sandbox]# export CHRONOGRAF_TAG=latest [root@portainer sandbox]# export KAPACITOR_TAG=latest [root@portainer sandbox]# export TYPE=latest
[root@portainer sandbox]# cat docker-compose.yml | envsubst > docker.yml [root@portainer sandbox]# nano docker [root@portainer sandbox]# nano docker.yml [root@portainer sandbox]# mv docker-compose.yml old-docker-compose.yml [root@portainer sandbox]# mv docker.yml docker-compose.yml [root@portainer sandbox]# ./sandbox up Using latest, stable releases Spinning up Docker Images... If this is your first time starting sandbox this might take a minute... Building documentation Step 1/6 : FROM alpine:3.4 ---> 174b26fe09c7 Step 2/6 : EXPOSE 3010:3000 ---> Using cache ---> 428771a7302a Step 3/6 : RUN mkdir -p /documentation ---> Using cache ---> a4578f07a79f Step 4/6 : COPY builds/documentation /documentation/ ---> Using cache ---> 625321db95fb Step 5/6 : COPY static/ /documentation/static ---> Using cache ---> dc654b24c4c6 Step 6/6 : CMD /documentation/documentation -filePath /documentation/ ---> Using cache ---> bddfe5ce0e24 Successfully built bddfe5ce0e24 Building influxdb Step 1/2 : ARG INFLUXDB_TAG ERROR: Service 'influxdb' failed to build: Please provide a source image with
fromprior to commit
Replacing the silly variable that obviously doesn't work.
[root@portainer sandbox]# vim images/kapacitor//latest/Dockerfile [root@portainer sandbox]# vim images///latest/Dockerfile chronograf/ influxdb/ kapacitor/ telegraf/ [root@portainer sandbox]# vim images///latest/Dockerfile chronograf/ influxdb/ kapacitor/ telegraf/ [root@portainer sandbox]# vim images/chronograf//latest/Dockerfile [root@portainer sandbox]# vim images///latest/Dockerfile chronograf/ influxdb/ kapacitor/ telegraf/ [root@portainer sandbox]# vim images/telegraf//latest/Dockerfile
Sorta works but Chronograf and Telegraf are not up.
sandbox_chronograf_1 /entrypoint.sh chronograf Exit 1 sandbox_documentation_1 /documentation/documentati ... Up 0.0.0.0:3010->3000/tcp sandbox_influxdb_1 /entrypoint.sh influxd Up 0.0.0.0:8082->8082/tcp, 0.0.0.0:8086->8086/tcp, 0.0.0.0:8089->8089/tcp sandbox_kapacitor_1 /entrypoint.sh kapacitord Up 0.0.0.0:9092->9092/tcp sandbox_telegraf_1 /entrypoint.sh telegraf Exit 1 `
Attaching to sandbox_chronograf_1 chronograf_1 | time="2018-12-17T05:30:36Z" level=error msg="Unable to open boltdb; is there a chronograf already running? open /var/lib/chronograf/chronograf-v1.db: permission denied" component=boltstore chronograf_1 | time="2018-12-17T05:30:50Z" level=error msg="Unable to open boltdb; is there a chronograf already running? open /var/lib/chronograf/chronograf-v1.db: permission denied" component=boltstore chronograf_1 | time="2018-12-17T05:34:18Z" level=error msg="Unable to open boltdb; is there a chronograf already running? open /var/lib/chronograf/chronograf-v1.db: permission denied" component=boltstore sandbox_chronograf_1 exited with code 1
Hi @TheLinuxGuy,
Can you let me know which version of Docker you are running? I am going to assume it's old, prior to the 17.05 release; which doesn't support ARG/FROM combinations.
As for the sensible-browser: command not found
, this means you do not have sensible-utils
installed on your machine. I believe switching that out for xdg-open
would be a good PR for this repo.
Closing. Feel free to reach out if you need any further support.
I'm having the same issue:
./sandbox up
Using latest, stable releases
Spinning up Docker Images...
If this is your first time starting sandbox this might take a minute...
Building influxdb
Step 1/2 : ARG INFLUXDB_TAG
ERROR: Service 'influxdb' failed to build: Please provide a source image with `from` prior to commit
docker --version
Docker version 1.13.1, build 1185cfd/1.13.1
docker-compose --version
docker-compose version 1.22.0, build f46880f
git rev-parse --verify HEAD
c52cc7ec867386fc873888888f4b509a0fb18d31
Manually replacing the tags in the Dockerfile works.
I'm trying to use this sandbox to try out the TICK stack, the other repository "TICK-stack" seems quite outdated with v1.3.
Anyway on a vanilla system it fails:
[root@portainer sandbox-master]# ./sandbox up Using latest, stable releases Spinning up Docker Images... If this is your first time starting sandbox this might take a minute... Building influxdb Step 1/2 : ARG INFLUXDB_TAG ERROR: Service 'influxdb' failed to build: Please provide a source image with
fromprior to commit