Last active
September 22, 2017 12:38
-
-
Save dgg/f80922d66ab9ee857584597cd6fe4812 to your computer and use it in GitHub Desktop.
net-core-sdk-2-on-unsupported-os
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker pull microsoft/dotnet:2.0-sdk | |
# tag pulled image for easier usage | |
> docker tag microsoft/dotnet:2.0-sdk sdk2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# close container session (container will stop) | |
root@container-id# exit | |
... | |
# reconnect to the stopped container | |
> $ docker start -a sdk2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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