0% found this document useful (0 votes)
2 views4 pages

PodmanSteps & Commands

The document provides step-by-step instructions for creating and running two containers using Podman: one for a web application with Nginx and another for Microsoft SQL Server. It includes commands for building a Docker image, running the Nginx container, pulling the SQL image, and running the SQL Server container with environment variables. Additionally, it offers troubleshooting tips for connecting to the SQL Server container using Microsoft SQL Server Management Studio.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

PodmanSteps & Commands

The document provides step-by-step instructions for creating and running two containers using Podman: one for a web application with Nginx and another for Microsoft SQL Server. It includes commands for building a Docker image, running the Nginx container, pulling the SQL image, and running the SQL Server container with environment variables. Additionally, it offers troubleshooting tips for connecting to the SQL Server container using Microsoft SQL Server Management Studio.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Container 1

1. Create DockerFile as follow in the Same Repository of project

2. podman machine init


3. podman machine set --rootful
4. podman machine start
5. ----Change Directory to project folder on CMD

6. podman build -t myapp -f DockerFile . (Command to build an Image on Podman)

To build an image Don’t use Travelex Network


Image Created

7. Podman run -dt -p 8080:80/tcp docker.io/library/nginx

Container 1st Done Which Contains Programs

Now For SQL

Container 2

8. Pull SQL image


Image Created

9. To run a new container with that image, specify the tag name in the docker run command. In
the following command, replace <image_tag> with the version you want to run.

docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=<YourStrong!Passw0rd>' -p 1401:1433 -


d mcr.microsoft.com/mssql/server:<image_tag>

10. Connect your Container with your Microsoft SQL Server Management studio

 Note: If you're unable to connect locally using localhost, try


using the IP address 127.0.0.1 instead. It's possible
that localhost isn't properly mapped to this address.
11. Connection Successful

12.

You might also like