Skip to content

Instantly share code, notes, and snippets.

@dgg
Last active September 22, 2017 12:38
Show Gist options
  • Save dgg/f80922d66ab9ee857584597cd6fe4812 to your computer and use it in GitHub Desktop.
Save dgg/f80922d66ab9ee857584597cd6fe4812 to your computer and use it in GitHub Desktop.
net-core-sdk-2-on-unsupported-os
> docker pull microsoft/dotnet:2.0-sdk
# tag pulled image for easier usage
> docker tag microsoft/dotnet:2.0-sdk sdk2
# close container session (container will stop)
root@container-id# exit
...
# reconnect to the stopped container
> $ docker start -a sdk2
> cd {project-folder}
> docker run -ti --name sdk2 --mount type=bind,source="$(pwd)",target=/root/{project-folder} sdk2
# this shell is in the running container
root@container-id#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment