Rancher 2.0.8 Importing docker-compose.yml file


I’m a new user of Rancher 2.0.8 and I have a question about using docker-compose.yml file. I have seen on a few tutorials that are possible to use a docker-compose file to creating containers, but I’m using rancher 2.0.8 and ui looks a little different and I’m not able to do that. I created a new cluster (and it is working). Now I’m clicking ‘Workloads’ and I see a button ‘Import yaml’. I’m trying to put here my docker-compose file, but I got the only error:

error: error validating “management-state/tmp/yaml-051017670”: error validating data: invalid object to validate; if you choose to ignore these errors, turn validation off with --validate=false

What should I do if I want to import my docker-compose file? Thanks for all responses.

You can use Kompose Convert to to get the docker compose yaml to kubernetes format.