GithubHelp home page GithubHelp logo

如何重启服务 about code6 HOT 8 CLOSED

4x99 avatar 4x99 commented on June 11, 2024
如何重启服务

from code6.

Comments (8)

yoonper avatar yoonper commented on June 11, 2024

容器内修改代码直接生效,不需要重启容器
重启容器 Dockerfile 会把 git clone 的代码复制到容器内(当然了,你也可以在容器外修改代码再启动容器)

from code6.

barkosHuang avatar barkosHuang commented on June 11, 2024

我是在容器外修改的,然后再启动的;
image
z
在git clone 的目录下修改的,是不是在这修改了还需要创建images;
在容器内是如何修改的

from code6.

yoonper avatar yoonper commented on June 11, 2024

修改了需要创建 image
在容器修改的话直接进入容器 docker exec -it code6-server /bin/bash (podman 自行修改)

from code6.

barkosHuang avatar barkosHuang commented on June 11, 2024

我重启了docker ,docker inspect mysqld | grep IPAddress ,其中IPAddress 的IP 已经变化了,由原来的IP 172.16.0.3 变成了172.16.0.8 这个时候要怎么修改IP 呢

from code6.

yoonper avatar yoonper commented on June 11, 2024

进入容器修改 .env 文件

from code6.

barkosHuang avatar barkosHuang commented on June 11, 2024

第一次完docker ,不知道.env文件是在哪修改的呢?具体的路径是?
非常感谢你的耐心解答。

from code6.

yoonper avatar yoonper commented on June 11, 2024

docker exec -it code6-server /bin/bash
.env 在根目录

from code6.

barkosHuang avatar barkosHuang commented on June 11, 2024

感谢

from code6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.