diff --git a/golang/README.md b/golang/README.md index 028878dc8..91f186c11 100644 --- a/golang/README.md +++ b/golang/README.md @@ -106,7 +106,7 @@ Go (a.k.a., Golang) is a programming language first developed at Google. It is a The most straightforward way to use this image is to use a Go container as both the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project (assuming it uses `go.mod` for dependency management): ```dockerfile -FROM golang:1.17 +FROM golang:1.18 WORKDIR /usr/src/app @@ -132,13 +132,13 @@ $ docker run -it --rm --name my-running-app my-golang-app There may be occasions where it is not appropriate to run your app inside a container. To compile, but not run your app inside the Docker instance, you can write something like: ```console -$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17 go build -v +$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.18 go build -v ``` This will add your current directory as a volume to the container, set the working directory to the volume, and run the command `go build` which will tell go to compile the project in the working directory and output the executable to `myapp`. Alternatively, if you have a `Makefile`, you can run the `make` command inside your container. ```console -$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17 make +$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.18 make ``` ## Cross-compile your app inside the Docker container @@ -146,13 +146,13 @@ $ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17 make If you need to compile your application for a platform other than `linux/amd64` (such as `windows/386`): ```console -$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=windows -e GOARCH=386 golang:1.17 go build -v +$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=windows -e GOARCH=386 golang:1.18 go build -v ``` Alternatively, you can build for multiple platforms at once: ```console -$ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17 bash +$ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.18 bash $ for GOOS in darwin linux; do > for GOARCH in 386 amd64; do > export GOOS GOARCH diff --git a/python/README.md b/python/README.md index 6fb49adc6..62683e059 100644 --- a/python/README.md +++ b/python/README.md @@ -36,34 +36,34 @@ WARNING: - [`3.11.0a6-alpine3.14`, `3.11-rc-alpine3.14`](https://github.com/docker-library/python/blob/0047f00c0967161e731c9bab7d50fd95c7c09d46/3.11-rc/alpine3.14/Dockerfile) - [`3.11.0a6-windowsservercore-ltsc2022`, `3.11-rc-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/0047f00c0967161e731c9bab7d50fd95c7c09d46/3.11-rc/windows/windowsservercore-ltsc2022/Dockerfile) - [`3.11.0a6-windowsservercore-1809`, `3.11-rc-windowsservercore-1809`](https://github.com/docker-library/python/blob/0047f00c0967161e731c9bab7d50fd95c7c09d46/3.11-rc/windows/windowsservercore-1809/Dockerfile) -- [`3.10.2-bullseye`, `3.10-bullseye`, `3-bullseye`, `bullseye`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/bullseye/Dockerfile) -- [`3.10.2-slim-bullseye`, `3.10-slim-bullseye`, `3-slim-bullseye`, `slim-bullseye`, `3.10.2-slim`, `3.10-slim`, `3-slim`, `slim`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/slim-bullseye/Dockerfile) -- [`3.10.2-buster`, `3.10-buster`, `3-buster`, `buster`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/buster/Dockerfile) -- [`3.10.2-slim-buster`, `3.10-slim-buster`, `3-slim-buster`, `slim-buster`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/slim-buster/Dockerfile) -- [`3.10.2-alpine3.15`, `3.10-alpine3.15`, `3-alpine3.15`, `alpine3.15`, `3.10.2-alpine`, `3.10-alpine`, `3-alpine`, `alpine`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/alpine3.15/Dockerfile) -- [`3.10.2-alpine3.14`, `3.10-alpine3.14`, `3-alpine3.14`, `alpine3.14`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/alpine3.14/Dockerfile) -- [`3.10.2-windowsservercore-ltsc2022`, `3.10-windowsservercore-ltsc2022`, `3-windowsservercore-ltsc2022`, `windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/windows/windowsservercore-ltsc2022/Dockerfile) -- [`3.10.2-windowsservercore-1809`, `3.10-windowsservercore-1809`, `3-windowsservercore-1809`, `windowsservercore-1809`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/windows/windowsservercore-1809/Dockerfile) -- [`3.9.10-bullseye`, `3.9-bullseye`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/bullseye/Dockerfile) -- [`3.9.10-slim-bullseye`, `3.9-slim-bullseye`, `3.9.10-slim`, `3.9-slim`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/slim-bullseye/Dockerfile) -- [`3.9.10-buster`, `3.9-buster`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/buster/Dockerfile) -- [`3.9.10-slim-buster`, `3.9-slim-buster`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/slim-buster/Dockerfile) -- [`3.9.10-alpine3.15`, `3.9-alpine3.15`, `3.9.10-alpine`, `3.9-alpine`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/alpine3.15/Dockerfile) -- [`3.9.10-alpine3.14`, `3.9-alpine3.14`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/alpine3.14/Dockerfile) -- [`3.9.10-windowsservercore-ltsc2022`, `3.9-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/windows/windowsservercore-ltsc2022/Dockerfile) -- [`3.9.10-windowsservercore-1809`, `3.9-windowsservercore-1809`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/windows/windowsservercore-1809/Dockerfile) -- [`3.8.12-bullseye`, `3.8-bullseye`](https://github.com/docker-library/python/blob/d363af347b75743b81c8ee05e8da9167dbeeb0b9/3.8/bullseye/Dockerfile) -- [`3.8.12-slim-bullseye`, `3.8-slim-bullseye`, `3.8.12-slim`, `3.8-slim`](https://github.com/docker-library/python/blob/d363af347b75743b81c8ee05e8da9167dbeeb0b9/3.8/slim-bullseye/Dockerfile) -- [`3.8.12-buster`, `3.8-buster`](https://github.com/docker-library/python/blob/d363af347b75743b81c8ee05e8da9167dbeeb0b9/3.8/buster/Dockerfile) -- [`3.8.12-slim-buster`, `3.8-slim-buster`](https://github.com/docker-library/python/blob/d363af347b75743b81c8ee05e8da9167dbeeb0b9/3.8/slim-buster/Dockerfile) -- [`3.8.12-alpine3.15`, `3.8-alpine3.15`, `3.8.12-alpine`, `3.8-alpine`](https://github.com/docker-library/python/blob/d363af347b75743b81c8ee05e8da9167dbeeb0b9/3.8/alpine3.15/Dockerfile) -- [`3.8.12-alpine3.14`, `3.8-alpine3.14`](https://github.com/docker-library/python/blob/d363af347b75743b81c8ee05e8da9167dbeeb0b9/3.8/alpine3.14/Dockerfile) -- [`3.7.12-bullseye`, `3.7-bullseye`](https://github.com/docker-library/python/blob/bba5c132540121a0fff47bc806b4203f69b9b1a2/3.7/bullseye/Dockerfile) -- [`3.7.12-slim-bullseye`, `3.7-slim-bullseye`, `3.7.12-slim`, `3.7-slim`](https://github.com/docker-library/python/blob/bba5c132540121a0fff47bc806b4203f69b9b1a2/3.7/slim-bullseye/Dockerfile) -- [`3.7.12-buster`, `3.7-buster`](https://github.com/docker-library/python/blob/bba5c132540121a0fff47bc806b4203f69b9b1a2/3.7/buster/Dockerfile) -- [`3.7.12-slim-buster`, `3.7-slim-buster`](https://github.com/docker-library/python/blob/bba5c132540121a0fff47bc806b4203f69b9b1a2/3.7/slim-buster/Dockerfile) -- [`3.7.12-alpine3.15`, `3.7-alpine3.15`, `3.7.12-alpine`, `3.7-alpine`](https://github.com/docker-library/python/blob/bba5c132540121a0fff47bc806b4203f69b9b1a2/3.7/alpine3.15/Dockerfile) -- [`3.7.12-alpine3.14`, `3.7-alpine3.14`](https://github.com/docker-library/python/blob/bba5c132540121a0fff47bc806b4203f69b9b1a2/3.7/alpine3.14/Dockerfile) +- [`3.10.3-bullseye`, `3.10-bullseye`, `3-bullseye`, `bullseye`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/bullseye/Dockerfile) +- [`3.10.3-slim-bullseye`, `3.10-slim-bullseye`, `3-slim-bullseye`, `slim-bullseye`, `3.10.3-slim`, `3.10-slim`, `3-slim`, `slim`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/slim-bullseye/Dockerfile) +- [`3.10.3-buster`, `3.10-buster`, `3-buster`, `buster`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/buster/Dockerfile) +- [`3.10.3-slim-buster`, `3.10-slim-buster`, `3-slim-buster`, `slim-buster`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/slim-buster/Dockerfile) +- [`3.10.3-alpine3.15`, `3.10-alpine3.15`, `3-alpine3.15`, `alpine3.15`, `3.10.3-alpine`, `3.10-alpine`, `3-alpine`, `alpine`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/alpine3.15/Dockerfile) +- [`3.10.3-alpine3.14`, `3.10-alpine3.14`, `3-alpine3.14`, `alpine3.14`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/alpine3.14/Dockerfile) +- [`3.10.3-windowsservercore-ltsc2022`, `3.10-windowsservercore-ltsc2022`, `3-windowsservercore-ltsc2022`, `windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/windows/windowsservercore-ltsc2022/Dockerfile) +- [`3.10.3-windowsservercore-1809`, `3.10-windowsservercore-1809`, `3-windowsservercore-1809`, `windowsservercore-1809`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/windows/windowsservercore-1809/Dockerfile) +- [`3.9.11-bullseye`, `3.9-bullseye`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/bullseye/Dockerfile) +- [`3.9.11-slim-bullseye`, `3.9-slim-bullseye`, `3.9.11-slim`, `3.9-slim`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/slim-bullseye/Dockerfile) +- [`3.9.11-buster`, `3.9-buster`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/buster/Dockerfile) +- [`3.9.11-slim-buster`, `3.9-slim-buster`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/slim-buster/Dockerfile) +- [`3.9.11-alpine3.15`, `3.9-alpine3.15`, `3.9.11-alpine`, `3.9-alpine`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/alpine3.15/Dockerfile) +- [`3.9.11-alpine3.14`, `3.9-alpine3.14`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/alpine3.14/Dockerfile) +- [`3.9.11-windowsservercore-ltsc2022`, `3.9-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/windows/windowsservercore-ltsc2022/Dockerfile) +- [`3.9.11-windowsservercore-1809`, `3.9-windowsservercore-1809`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/windows/windowsservercore-1809/Dockerfile) +- [`3.8.13-bullseye`, `3.8-bullseye`](https://github.com/docker-library/python/blob/6b9719086775ddce2dde10871da97cbeb87b81ad/3.8/bullseye/Dockerfile) +- [`3.8.13-slim-bullseye`, `3.8-slim-bullseye`, `3.8.13-slim`, `3.8-slim`](https://github.com/docker-library/python/blob/6b9719086775ddce2dde10871da97cbeb87b81ad/3.8/slim-bullseye/Dockerfile) +- [`3.8.13-buster`, `3.8-buster`](https://github.com/docker-library/python/blob/6b9719086775ddce2dde10871da97cbeb87b81ad/3.8/buster/Dockerfile) +- [`3.8.13-slim-buster`, `3.8-slim-buster`](https://github.com/docker-library/python/blob/6b9719086775ddce2dde10871da97cbeb87b81ad/3.8/slim-buster/Dockerfile) +- [`3.8.13-alpine3.15`, `3.8-alpine3.15`, `3.8.13-alpine`, `3.8-alpine`](https://github.com/docker-library/python/blob/6b9719086775ddce2dde10871da97cbeb87b81ad/3.8/alpine3.15/Dockerfile) +- [`3.8.13-alpine3.14`, `3.8-alpine3.14`](https://github.com/docker-library/python/blob/6b9719086775ddce2dde10871da97cbeb87b81ad/3.8/alpine3.14/Dockerfile) +- [`3.7.13-bullseye`, `3.7-bullseye`](https://github.com/docker-library/python/blob/a9815ead3ae016edf7039285cb267b14a5700169/3.7/bullseye/Dockerfile) +- [`3.7.13-slim-bullseye`, `3.7-slim-bullseye`, `3.7.13-slim`, `3.7-slim`](https://github.com/docker-library/python/blob/a9815ead3ae016edf7039285cb267b14a5700169/3.7/slim-bullseye/Dockerfile) +- [`3.7.13-buster`, `3.7-buster`](https://github.com/docker-library/python/blob/a9815ead3ae016edf7039285cb267b14a5700169/3.7/buster/Dockerfile) +- [`3.7.13-slim-buster`, `3.7-slim-buster`](https://github.com/docker-library/python/blob/a9815ead3ae016edf7039285cb267b14a5700169/3.7/slim-buster/Dockerfile) +- [`3.7.13-alpine3.15`, `3.7-alpine3.15`, `3.7.13-alpine`, `3.7-alpine`](https://github.com/docker-library/python/blob/a9815ead3ae016edf7039285cb267b14a5700169/3.7/alpine3.15/Dockerfile) +- [`3.7.13-alpine3.14`, `3.7-alpine3.14`](https://github.com/docker-library/python/blob/a9815ead3ae016edf7039285cb267b14a5700169/3.7/alpine3.14/Dockerfile) ## Shared Tags @@ -74,24 +74,24 @@ WARNING: - `3.11.0a6-windowsservercore`, `3.11-rc-windowsservercore`: - [`3.11.0a6-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/0047f00c0967161e731c9bab7d50fd95c7c09d46/3.11-rc/windows/windowsservercore-ltsc2022/Dockerfile) - [`3.11.0a6-windowsservercore-1809`](https://github.com/docker-library/python/blob/0047f00c0967161e731c9bab7d50fd95c7c09d46/3.11-rc/windows/windowsservercore-1809/Dockerfile) -- `3.10.2`, `3.10`, `3`, `latest`: - - [`3.10.2-bullseye`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/bullseye/Dockerfile) - - [`3.10.2-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/windows/windowsservercore-ltsc2022/Dockerfile) - - [`3.10.2-windowsservercore-1809`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/windows/windowsservercore-1809/Dockerfile) -- `3.10.2-windowsservercore`, `3.10-windowsservercore`, `3-windowsservercore`, `windowsservercore`: - - [`3.10.2-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/windows/windowsservercore-ltsc2022/Dockerfile) - - [`3.10.2-windowsservercore-1809`](https://github.com/docker-library/python/blob/010197d6572b9915ba9e6e65e71c063fb8cc5b95/3.10/windows/windowsservercore-1809/Dockerfile) -- `3.9.10`, `3.9`: - - [`3.9.10-bullseye`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/bullseye/Dockerfile) - - [`3.9.10-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/windows/windowsservercore-ltsc2022/Dockerfile) - - [`3.9.10-windowsservercore-1809`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/windows/windowsservercore-1809/Dockerfile) -- `3.9.10-windowsservercore`, `3.9-windowsservercore`: - - [`3.9.10-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/windows/windowsservercore-ltsc2022/Dockerfile) - - [`3.9.10-windowsservercore-1809`](https://github.com/docker-library/python/blob/0f753da42f7ca178a073836c4532dc1433d6cac0/3.9/windows/windowsservercore-1809/Dockerfile) -- `3.8.12`, `3.8`: - - [`3.8.12-bullseye`](https://github.com/docker-library/python/blob/d363af347b75743b81c8ee05e8da9167dbeeb0b9/3.8/bullseye/Dockerfile) -- `3.7.12`, `3.7`: - - [`3.7.12-bullseye`](https://github.com/docker-library/python/blob/bba5c132540121a0fff47bc806b4203f69b9b1a2/3.7/bullseye/Dockerfile) +- `3.10.3`, `3.10`, `3`, `latest`: + - [`3.10.3-bullseye`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/bullseye/Dockerfile) + - [`3.10.3-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/windows/windowsservercore-ltsc2022/Dockerfile) + - [`3.10.3-windowsservercore-1809`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/windows/windowsservercore-1809/Dockerfile) +- `3.10.3-windowsservercore`, `3.10-windowsservercore`, `3-windowsservercore`, `windowsservercore`: + - [`3.10.3-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/windows/windowsservercore-ltsc2022/Dockerfile) + - [`3.10.3-windowsservercore-1809`](https://github.com/docker-library/python/blob/2825144ae5bfbb841e69bec6a9b301a3b7e0e7ab/3.10/windows/windowsservercore-1809/Dockerfile) +- `3.9.11`, `3.9`: + - [`3.9.11-bullseye`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/bullseye/Dockerfile) + - [`3.9.11-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/windows/windowsservercore-ltsc2022/Dockerfile) + - [`3.9.11-windowsservercore-1809`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/windows/windowsservercore-1809/Dockerfile) +- `3.9.11-windowsservercore`, `3.9-windowsservercore`: + - [`3.9.11-windowsservercore-ltsc2022`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/windows/windowsservercore-ltsc2022/Dockerfile) + - [`3.9.11-windowsservercore-1809`](https://github.com/docker-library/python/blob/cfebb82586e85db75dfac39f7bf41a4728c52df9/3.9/windows/windowsservercore-1809/Dockerfile) +- `3.8.13`, `3.8`: + - [`3.8.13-bullseye`](https://github.com/docker-library/python/blob/6b9719086775ddce2dde10871da97cbeb87b81ad/3.8/bullseye/Dockerfile) +- `3.7.13`, `3.7`: + - [`3.7.13-bullseye`](https://github.com/docker-library/python/blob/a9815ead3ae016edf7039285cb267b14a5700169/3.7/bullseye/Dockerfile) # Quick reference (cont.)