首页 \ 问答 \ Docker - 重新创建后在MySQL容器中回滚数据(Docker - Rollback data in MySQL container after recreating)

Docker - 重新创建后在MySQL容器中回滚数据(Docker - Rollback data in MySQL container after recreating)

“使用docker镜像,我们可以同时在实例上同时保留前一个图像和新图像。由于之前的图像仍在实例上,因此回滚只需重新启动指向上一个图像的容器即可。”

嗨,我是Docker的新手,并计划通过为持久性数据创建MySQL映像和仅数据容器来使用MySQL和Docker。 在销毁并重新创建MySQL容器之后,我可以知道如何回滚容器中的数据(例如我改变表)?


"With docker images we can keep both the previous image and the new image on an instance at the same time. Since the previous images are still on the instance, rollbacks are just a matter of restarting the container pointing to the previous image."

Hi I'm new to Docker and am planning to use MySQL with Docker by creating a MySQL image and a data-only container for persistence data. May I know how can I rollback the data in the container (for example I alter the table) after I destroy and recreate the MySQL container?


原文:https://stackoverflow.com/questions/26751554
更新时间:2022-07-12 13:07

最满意答案

我通过简单地对元素和结构进行分组来解决问题。我为边框半径添加了rx: 5ry: 5

有所有代码JSFIDDLE


I solved the problem by simply grouping the elements and in fabric.Rect I added rx: 5 and ry: 5 for border radius.

There is all the code JSFIDDLE

相关问答

更多
  • 我认为你所寻找的是一个面料组。 教程: http : //fabricjs.com/fabric-intro-part-3#groups 文档: http : //fabricjs.com/docs/fabric.Group.html 尝试这样的事情: var c = new fabric.Circle({ left: left, top: top, radius: 2, fill: '#5afffa', stroke: '#6 ...
  • 这是webkit浏览器中的已知错误 看这个例子 所以简而言之,是的,现在你必须将图像包装在一个div中。 吮吸。 查看这些错误报告: http://code.google.com/p/chromium/issues/detail?id=82417 https://bugs.webkit.org/show_bug.cgi?id=30475 现在,将它包装在div中, 就像我在这里所做的那样 This is a known bug in webkit browsers See this example So i ...
  • 有几种方法可以避免恼人的边框半径背景流血: 方法1:包含背景颜色的包装 将放入一个包装元素中,并将填充添加到包装中,其背景色与的边框匹配。 这样,图像上发生的任何抗锯齿都将考虑包装的背景颜色,而不是页面的背景颜色。 方法2:为图像添加背景颜色 将背景颜色添加到与边框颜色相匹配的中。 它将使用的背景色而不是页面背景色来进行抗锯齿。 方法3:使用填充代替 不要打扰边界。 将填充添加到等于所需边框尺寸的 ,并在所需的边框颜色中添加背景颜色。 用最少的代码获得相同的 ...
  • 这是因为.line没有应用border-radius ,它溢出了容器。 设置overflow: hidden在容器上,它将工作。 见http://jsfiddle.net/Xhrx8/ It's because the .line doesn't have border-radius applied, and it overflows the container. Set overflow: hidden on the container and it will work. See http://jsfid ...
  • 不幸的是,webkit和mozilla的CSS属性形式各不相同。 对于Firefox,您需要: -moz-border-radius-bottomright: -moz-border-radius-bottomleft: -moz-border-radius-topright: -moz-border-radius-topleft: 对于你想要的Safari和Chrome: -webkit-border-top-left-radius: -webkit-border-top-right-radiu ...
  • 问题似乎是IE的input[type="image"]渲染input[type="image"] - 如果给它一个border属性,你可以看到图像被渲染而忽略了border-radius属性。 最简单的修复方法是将input[type="image"]包装在div ,将定位,边框和大小调整属性应用于div (将大小调整应用于input[type="image"] ),并用overflow:hidden;标记div overflow:hidden; 。 文体笔记(与问题无关): border-radius: ...
  • 我通过简单地对元素和结构进行分组来解决问题。我为边框半径添加了rx: 5和ry: 5 。 有所有代码JSFIDDLE I solved the problem by simply grouping the elements and in fabric.Rect I added rx: 5 and ry: 5 for border radius. There is all the code JSFIDDLE
  • 据我所知,这不是图像不填充边框半径的问题,而是浏览器如何渲染边框的问题。 如果将边框的颜色更改为与图像不同的颜色,则可以看到实际上,在Chrome中绘制时,边框会在图像下方绘制。 一个潜在的解决方法是使用div包装图像,并将边框放在该div上。 我使用了一个16x16的图像并得到了你所做的同样的结果......起初。 我用div包裹它,问题就消失了。 .gravatar { float: left; text-align: center; margin-top: 1px; ...
  • 如果我正确理解你的问题,你会担心填充是“偏离中心”而在右边。 这是因为您的填充定义是: padding: 4px 9px 9px 0px; 以上就是你现在拥有的。 填充定义为: padding: top right bottom left 您可以在上面看到,您将右侧设置为9px,但左侧设置为0px。 如果您希望它成比例,请确保右侧和左侧值相等。 If I understand your question correctly, you are concerned that the padding is "of ...
  • 添加这个: .table { overflow: hidden; } 演示 Add this: .table { overflow: hidden; } Demo

相关文章

更多

最新问答

更多
  • python的访问器方法有哪些
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。
  • 响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
  • 在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
  • NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
  • 元素上的盒子阴影行为(box-shadow behaviour on elements)
  • Laravel检查是否存在记录(Laravel Checking If a Record Exists)
  • 设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
  • 想学Linux 运维 深圳有哪个培训机构好一点
  • 为什么有时不需要在lambda中捕获一个常量变量?(Why is a const variable sometimes not required to be captured in a lambda?)
  • 在Framework 3.5中使用服务器标签<%=%>设置Visible属性(Set Visible property with server tag <%= %> in Framework 3.5)
  • AdoNetAppender中的log4net连接类型无效(log4net connection type invalid in AdoNetAppender)
  • 错误:发送后无法设置标题。(Error: Can't set headers after they are sent. authentication system)
  • 等待EC2实例重启(Wait for an EC2 instance to reboot)
  • 如何在红宝石中使用正则表达式?(How to do this in regex in ruby?)
  • 使用鼠标在OpenGL GLUT中绘制多边形(Draw a polygon in OpenGL GLUT with mouse)
  • 江民杀毒软件的KSysnon.sys模块是什么东西?
  • 处理器在传递到add_xpath()或add_value()时调用了什么顺序?(What order are processors called when passed into add_xpath() or add_value()?)
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • SQL查询,其中字段不包含$ x(SQL Query Where Field DOES NOT Contain $x)
  • PerSession与PerCall(PerSession vs. PerCall)
  • C#:有两个构造函数的对象:如何限制哪些属性设置在一起?(C#: Object having two constructors: how to limit which properties are set together?)
  • 平衡一个精灵(Balancing a sprite)
  • n2cms Asp.net在“文件”菜单上给出错误(文件管理器)(n2cms Asp.net give error on Files menu (File Manager))
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的