3
Home
code-dev edited this page 2 years ago
docker pull mcr.microsoft.com/mssql/server:2019-latest
Steps App
Container building - App
- docker build -t appnet:1 .
- docker image ls
Step DB
- Start Docker w/ Network appnet
- docker container run -d --network appnet -p 1433:1433 --env SA_PASSWORD=FooF_1000_#az --env ACCEPT_EULA=Y --name testdb 9ab
- docker ps
- sudo docker exec –it bash
NOTE
- Use the container name not the bridge network name in the database URL
Step API App
- docker container run -d --network appnet -p 8808:8808 --name testapi ed2
- docker network create appnet