https://rancher.com/ logo
Title
c

cold-helicopter-11667

05/05/2023, 3:02 PM
Good morning! I'm making the switch from docker to rancher and I've got things mostly up and running but my mariadb container is failing with the following error. This worked fine under docker so I'm not sure what might have changed.
chown: changing ownership of '/var/lib/mysql': Permission denied
r

rapid-eye-50641

05/05/2023, 5:22 PM
@cold-helicopter-11667, Can you please some details about your environment, the OS you are running on, the steps you follow to run the mariadb container etc?
c

cold-helicopter-11667

05/05/2023, 6:16 PM
I am on mac os and I run containers via tilt which is basically bringing up a list of things through
docker-compose
. All of my other containers work fine though, just this one is having an issue.
r

rapid-eye-50641

05/05/2023, 6:17 PM
Would you be able to share your docker-compose file?
c

cold-helicopter-11667

05/05/2023, 6:32 PM
I can share my tilt.yaml file. The docker file is made by tilt based off of that.
tilt.yaml
Is there a way to ssh into the container? In the docker world I could
docker exec -it containername bash
but I don't know the rancher equivalent.
r

rapid-eye-50641

05/05/2023, 8:55 PM
I will try out tilt shortly.
You can use the same command
docker exec -it container-name-or-id bash
with Rancher Desktop too