Code Monkey home page Code Monkey logo

k8s-tools's Introduction

k8s-tools

This Dockerfile creates a Linux container image based on RockyLinux 9 with various utilities installed, which are useful for troubleshooting and managing Kubernetes resources.

Installed Packages

The following packages are included in the image:

  • bash-completion
  • bind-utils
  • curl
  • git
  • iputils
  • jq
  • mysql
  • net-tools
  • openldap-clients
  • postgresql
  • redis
  • sqlite
  • tcpdump
  • unzip
  • vim
  • wget
  • wireshark-cli

Building the Docker Image

To build the Docker image for both ARM and AMD64 architectures, you can use Docker Buildx. Follow the instructions below.

  1. Ensure you have Docker 20.10 or newer installed, as Buildx is included by default in these versions.

  2. Check if Buildx is available by running docker buildx version.

  3. Create a new builder instance with multi-architecture support:

    docker buildx create --name multiarch-builder --driver docker-container --use
    
  4. Build and push the multi-architecture image:

    docker buildx build --platform linux/amd64,linux/arm64 -t <your-repo>/k8s-tools:latest --push .
    

    Replace <your-repo> with your desired repository name (e.g., username or organization).

  5. Once the build is complete, you can check the newly pushed multi-architecture manifest:

    docker buildx imagetools inspect <your-repo>/k8s-tools:latest
    

That's it! You've successfully built and pushed a Docker image supporting both ARM and AMD64 architectures using Buildx.

k8s-tools's People

Contributors

heysarver avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.