MCPcopy Index your code
hub / github.com/docker/docker-py / get_current_context

Method get_current_context

docker/context/api.py:128–133  ·  view source on GitHub ↗

Get current context. Returns: (Context): current context object.

(cls)

Source from the content-addressed store, hash-verified

126
127 @classmethod
128 def get_current_context(cls):
129 """Get current context.
130 Returns:
131 (Context): current context object.
132 """
133 return cls.get_context()
134
135 @classmethod
136 def set_current_context(cls, name="default"):

Callers 2

test_lifecycleMethod · 0.80

Calls 1

get_contextMethod · 0.80

Tested by 2

test_lifecycleMethod · 0.64