Good afternoon everyone. There was a problem installing mysql8.0.28 into the image mcr.microsoft.com/powershell:lts-nanoserver-1809
I am attaching the docker file. The error occurs during the service installation stage.
This is my dockerfile
FROM mcr.microsoft.com/powershell:lts-nanoserver-1809
COPY /vcruntime140.dll .
COPY ./vcruntime140.dll C:\Windows\System32\vcruntime140.dll
ADD ./mysql.zip mysql.zip
RUN tar -xf mysql.zip
RUN rename mysql-8.0.28-winx64 mysql
RUN del mysql.zip
ADD ./my.ini /my.ini
RUN mkdir c:mysqldata
RUN mkdir c:mysqluserdatalogs
RUN mkdir c:mysqluserdatatemp
ARG SETX=/M
USER ContainerAdministrator
ENV MYSQL C:\mysql
RUN setx /M PATH "%PATH%;C:mysqlbin"
//this code is wrong
RUN C:mysqlbinmysqld.exe --initialize-insecure --console --explicit_defaults_for_timestamp
RUN C:mysqlbinmysqld.exe --install
// end of wrong code
EXPOSE 3306
I want to see the finished image in which the mysql service is installed and running
New contributor
Den Kazakov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.