GithubHelp home page GithubHelp logo

Run command in existing container about dip HOT 4 CLOSED

bibendi avatar bibendi commented on May 24, 2024
Run command in existing container

from dip.

Comments (4)

bibendi avatar bibendi commented on May 24, 2024

Hi!

it starts a new container each time, so startup is slow. How can I use an existing container if I run docker-compose up beforehand?

You can't reuse it. This architecture is by design. The startup can't be slow, because the overhead of starting a new container tends to zero.

You can find good working examples at:

from dip.

vitobotta avatar vitobotta commented on May 24, 2024

Hi @bibendi, it's weird but if I run tests from inside the existing container it's a bit faster than if I run them through the dip command (my config is correct). Could it be because on Mac Docker uses a virtual machine behind the scenes? Thanks

from dip.

bibendi avatar bibendi commented on May 24, 2024

Probably yes.

I have that numbers on my Linux machine:

$ time dip run bash -c exit

0,76s user 0,10s system

Overhead is only about 0,76s, so it is no bother me.

from dip.

vitobotta avatar vitobotta commented on May 24, 2024

Uhm. I ran that command and I get

dip run bash -c exit 0.55s user 0.15s system 31% cpu 2.194 total

so it's not bad I guess. Perhaps I am complaining too much πŸ—‘

Thanks!

from dip.

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.