Sign inSign up

sdflysha/choco

By sdflysha

•Updated about 2 years ago

Image
0

1.1K

sdflysha/choco repository overview

⁠sdflysha/choco Docker Image

Welcome to the sdflysha/choco Docker image repository. This Docker image provides a Windows Server Core (LTSC 2022) environment with Chocolatey pre-installed, facilitating the setup of a Windows-based container with package management capabilities.

⁠Features

  • Windows Server Core Base: Built on top of the robust mcr.microsoft.com/windows/servercore:ltsc2022, ensuring compatibility with a wide range of Windows applications.
  • Chocolatey Installed: Chocolatey, a popular package manager for Windows, is pre-installed enabling easy software management inside the container.

⁠Installation

You can pull the pre-built Docker image from Docker Hub using the following command:

docker pull sdflysha/choco

⁠Usage

Once you have pulled the image, you can run a container using the following command:

docker run -it sdflysha/choco

This command starts a container and opens an interactive terminal session (-it), where you can begin using the Chocolatey package manager immediately to install software packages.

⁠Example: Installing a Package

To install a package, for example git, simply run the following command inside the container:

choco install git -y

⁠Building from Source

If you prefer to build the image yourself, you can clone the repository and build the image using the provided Dockerfile.

  1. Clone the repository:

    git clone https://github.com/sdcb/dockerfiles.git
    
  2. Navigate to the directory containing the Dockerfile:

    cd dockerfiles/src/choco
    
  3. Build the image:

    docker build -t your-custom-tag .
    

⁠Dockerfile Explained

The Dockerfile used in this image performs the following steps:

  • Base Image: Starts with Microsoft's official Windows Server Core image (mcr.microsoft.com/windows/servercore:ltsc2022).
  • Chocolatey Installation: Executes a PowerShell script that adjusts security protocols and downloads the Chocolatey installation script directly from the official site and executes it. It also adds the Chocolatey binary path to the system PATH.

⁠Contributions

Contributions to improve the Docker image or documentation are welcome. Feel free to fork the repository and submit pull requests.

⁠License

This project is made available under the MIT License. For more details, see the LICENSE file in the repository.

⁠Acknowledgments

  • This Docker image is built using the base image from Microsoft (mcr.microsoft.com).
  • The Chocolatey installation process follows the official guidelines provided by Chocolatey.org.

For more information about the tools used in this image, visit:

Thank you for using or contributing to the sdflysha/choco Docker image. For issues or suggestions, please use the GitHub repository's issue tracker.

Tag summary

Content type

Image

Digest

sha256:82a0fbc73…

Size

2 GB

Last updated

about 2 years ago

docker pull sdflysha/choco