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
最满意答案
相关问答
更多-
我认为你所寻找的是一个面料组。 教程: 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:使用填充代替 不要打扰边界。 将填充添加到等于所需边框尺寸的 ,并在所需的边框颜色中添加背景颜色。 用最少的代码获得相同的 ...
-
为什么这个div的子元素没有border-radius?(Why do the child elements of this div not have border-radius?)[2023-05-28]
这是因为.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 ... -
边境半径行为不端(border radius misbehaving)[2022-03-05]
不幸的是,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: ...
-
在Fabricjs中的背景文本中添加填充和边框半径(Adding padding and border radius in background text in Fabricjs)[2023-07-09]
我通过简单地对元素和结构进行分组来解决问题。我为边框半径添加了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 -
图像未填充边界半径(Image not filling border-radius)[2021-12-07]
据我所知,这不是图像不填充边框半径的问题,而是浏览器如何渲染边框的问题。 如果将边框的颜色更改为与图像不同的颜色,则可以看到实际上,在Chrome中绘制时,边框会在图像下方绘制。 一个潜在的解决方法是使用div包装图像,并将边框放在该div上。 我使用了一个16x16的图像并得到了你所做的同样的结果......起初。 我用div包裹它,问题就消失了。 .gravatar { float: left; text-align: center; margin-top: 1px; ... -
边界半径比例(Border radius proportions)[2024-04-12]
如果我正确理解你的问题,你会担心填充是“偏离中心”而在右边。 这是因为您的填充定义是: 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