Skip to content

Instantly share code, notes, and snippets.

@boucher
Created May 6, 2015 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boucher/06439aa19b8e0c195217 to your computer and use it in GitHub Desktop.
Save boucher/06439aa19b8e0c195217 to your computer and use it in GitHub Desktop.
var container = await docker.createContainerAsync(options);
// FIXME we need to be checkpointed before we can restore
await container.startAsync();
await container.checkpointAsync({})
await container.restoreAsync({
ImagesDirectory: getCheckpointPath(request.URL, lastChecksum)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment