Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sample Dockerize Asp.net Core Project.

NotificationsYou must be signed in to change notification settings

amingolmahalle/SampleDockerize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Dockerize Asp.net Core 3.1 Project.

First Create Network to watch 2 Container(means redis and project) on Docker:

sudo docker create network NetworkName

then run redis along with join to created network and persist data:

  • before run below command.you need to create redis folder in/tmp/data/redis (path and folder name is optional.you can change their name as well as create folders path).

sudo docker run --rm --name redis -p6380:6379 -v /tmp/data/redis:/data --network NetworkName redis redis-server --appendonly yes

then Create Image by dockerFile:

sudo docker build -t projectname:1.0 .

  • your project name have to be lowercase.

then after create image we have to run container from created image and join to network:

sudo docker run --rm --name ContainerName -p80:80 --network NetworkName projectname:1.0

finally call below url on browser:

localhost:80


[8]ページ先頭

©2009-2025 Movatter.jp