kirillian / shiplane

Convert your development docker-compose yaml files into production-ready docker deployments
MIT License
34 stars 0 forks source link

On linux, underscores. On WSL, dashes #74

Closed legacy370 closed 9 months ago

legacy370 commented 10 months ago

Precheck

Environment

Current behavior

When running Shiplane on WSL, the bundle exec cap staging shiplane command fails. It can't find the images it has just created.

Expected behavior

Should work the same as on native Linux. Reason -- on WSL, the default behavior is to use dashes in the image names, while shiplane is expecting underscores. When I ran the command as COMPOSE_COMPATIBILITY=true bundle exec cap staging shiplane, it worked.

kirillian commented 9 months ago

This is actually expected behavior. It has nothing to do with WSL or not WSL though. It's cause is actually the Docker version that's installed in your system. You can read through some of the quirks in this stack overflow article: https://stackoverflow.com/questions/69464001/docker-compose-container-name-use-dash-instead-of-underscore.