Docker container doesn't run until I click "Enable volumes" in Kitematic

518 Views Asked by At

I recently created a docker-compose file here: https://github.com/ffMathy/Screeps.Server.Docker/blob/master/docker-compose.yml

I'm currently on Windows, but running Linux containers.

When I try to start up my containers using docker-compose up, they appear just fine. However, the screeps container doesn't show anything in the log, and doesn't start (I know this because I can't connect to its port).

Now, if I then click the volume via Kitematic (as shown in the screenshot) and click "Enable volumes" in the prompt that shows, the container restarts, and works - logs are also present in the preview as expected.

enter image description here enter image description here

I don't understand how this can affect the container itself - that doesn't make much sense to me.

2

There are 2 best solutions below

0
Mathias Lykkegaard Lorenzen On BEST ANSWER

I solved the problem by forcing the volume to mount to a relative path in my docker-compose.yml file.

3
Daniel Krom On

I'm having the same exact issue.

Downgrade Kitematic to 0.17.6 seems to fix the problem.

You can download it from here:

https://github.com/docker/kitematic/releases/tag/v0.17.6