Skip to content

Instantly share code, notes, and snippets.

@boucher
Created May 6, 2015 05:18
Show Gist options
  • 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