Giter VIP home page Giter VIP logo

Comments (1)

vvoland avatar vvoland commented on June 23, 2024

There are events published when exec is created, started and dies:

$ docker run -d --name asdf nginx

$ docker events &

$ docker exec nginx sh
2024-04-16T10:12:11.513015590Z container exec_create: sh  396aa17a52c33e4ff2b1c9
647e0b5c54db5c656fea9f6be8d86fe288201c4d88 (execID=eedf99c918f136f18a852bd13da93
6d80dad6a3a03bf07da8ff02806eefa0d01, image=nginx, maintainer=NGINX Docker Mainta
iners <[email protected]>, name=asdf)
2024-04-16T10:12:11.513638390Z container exec_start: sh  396aa17a52c33e4ff2b1c96
47e0b5c54db5c656fea9f6be8d86fe288201c4d88 (execID=eedf99c918f136f18a852bd13da936
d80dad6a3a03bf07da8ff02806eefa0d01, image=nginx, maintainer=NGINX Docker Maintai
ners <[email protected]>, name=asdf)
2024-04-16T10:12:11.539399768Z container exec_die 396aa17a52c33e4ff2b1c9647e0b5c
54db5c656fea9f6be8d86fe288201c4d88 (execID=eedf99c918f136f18a852bd13da936d80dad6
a3a03bf07da8ff02806eefa0d01, exitCode=0, image=nginx, maintainer=NGINX Docker Ma
intainers <[email protected]>, name=asdf)

Also, please keep in mind that there is no such thing as logging into a container. docker exec only creates a new task (process) inside the container. It shouldn't be regarded as an equivalent of sshing into a vm.

Let me close the issue as not planned, but feel free to continue the conversation!

from moby.

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.