MCPcopy Index your code
hub / github.com/serverless/serverless / canUseDocker

Function canUseDocker

packages/sf-core/tests/python/test.js:222–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220}
221
222const canUseDocker = () => {
223 let result
224 try {
225 result = crossSpawn.sync('docker', ['ps'])
226 } catch (e) {
227 return false
228 }
229 return result.status === 0
230}
231
232// Skip if running on these platforms.
233const brokenOn = (...platforms) => platforms.indexOf(process.platform) != -1

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…