0
我有一個官方的MySQL容器。我做碼頭工人 - 無法運行導入圖像的容器與入口點
docker export <cont_name> > ~/Desktop/mysql.tar
接下來我做
sudo tar -c ~/Desktop/mysql.tar | docker import --change "ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" --change "ENV MYSQL_MAJOR 5.7" --change "ENV MYSQL_VERSION 5.7.8-rc" --change "ENTRYPOINT [\"/entrypoint.sh\"]" --change "EXPOSE 3306" --change "VOLUME /var/lib/mysql" --change "CMD [\"mysqld\"]" - mysql:kyriakos
最後
docker run --env "MYSQL_ROOT_PASSWORD=root" --name mysql_kyr mysql:kyriakos
,我得到
exec: "/entrypoint.sh": stat /entrypoint.sh: no such file or directory
Error response from daemon: Cannot start container a15613493ee94a159ff0821974742350ae5df26b0f659932dc7cb3264295e944: [8] System error: exec: "/entrypoint.sh": stat /entrypoint.sh: no such file or directory
我做得不對的進口?在.tar文件的/entrypoint.sh
似乎存在..
謝謝