# Problem with mysql container

**URL:** <https://forums.docker.com/t/problem-with-mysql-container/25723>\
**Category:** Docker Desktop\
**Created:** [December 6, 2016, 5:46pm UTC](https://forums.docker.com/t/problem-with-mysql-container/25723 "2016-12-06T17:46:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnacinovic](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/nnacinovic/32/10016_2.png) [@nnacinovic](https://forums.docker.com/u/nnacinovic)\
**Post date:** [December 6, 2016, 5:46pm UTC](https://forums.docker.com/t/problem-with-mysql-container/25723/1 "2016-12-06T17:46:15Z")

</div>

Hi,

I am using the mysql image ([https://hub.docker.com/r/library/mysql/](https://hub.docker.com/r/library/mysql/)). I want to use a custom conf file to override the sql mode but I am having some difficulties.

 ![](https://global.discourse-cdn.com/docker/original/2X/0/028afe32252f979832b4712bd8d22aa6a98836f2.png)

When I click on the first line, where the change button is, it displays like there is no file in that folder but there is a “my.cnf” file there.

Do I need to make additional changes somewhere?

To run/start the container I used this command “docker run --name some-mysql -v /my/custom:/etc/mysql/conf.d -e MYSQL\_ROOT\_PASSWORD=my-secret-pw -d mysql:tag” but with my data.

Thanks!

---

<div class="post-metadata">

**Author:** ![nnacinovic](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/nnacinovic/32/10016_2.png) [@nnacinovic](https://forums.docker.com/u/nnacinovic)\
**Post date:** [January 4, 2017, 9:47am UTC](https://forums.docker.com/t/problem-with-mysql-container/25723/2 "2017-01-04T09:47:19Z")

</div>

It was a problem with the permissions on the conf file.
