-
Notifications
You must be signed in to change notification settings - Fork 7
Clarify AWS ECR as the only supported Docker registry for Keboola components #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,61 +1,61 @@ | ||
| --- | ||
| title: Installation and Running | ||
| permalink: /extend/component/docker-tutorial/setup/ | ||
| redirect_from: | ||
| - /extend/docker/tutorial/setup/ | ||
| --- | ||
| * TOC | ||
| {:toc} | ||
| To work with Docker, you need to have it installed. If you do not have a computer with a Docker machine, you can obtain a | ||
| cheap [hosted server](https://marketplace.digitalocean.com/apps/docker). You can also | ||
| run everything locally. To install a Docker machine on Win/Mac, | ||
| use [Docker Community Edition](https://hub.docker.com/search?type=edition&offering=community). For | ||
| other systems, see the [documentation](https://docs.docker.com/install/). | ||
| ## Getting Started | ||
| To test that everything is running correctly, start with an example | ||
| from the Docker [documentation](https://docs.docker.com/get-started/). | ||
| Run the following commands on the command line: | ||
| docker run hello-world | ||
| or | ||
| docker run docker.io/library/hello-world:latest | ||
| If this works, use any image published in any Docker | ||
| registry, e.g. [Docker Hub](https://hub.docker.com/), [Quay](https://quay.io/) or [AWS ECR](https://aws.amazon.com/ecr/). | ||
| Note that in some configurations, you may need to use `sudo` to run `docker`. If you run into problems, consult the | ||
| official troubleshooting ([Windows](https://docs.docker.com/docker-for-windows/troubleshoot/), [Mac](https://docs.docker.com/docker-for-mac/troubleshoot/)). | ||
| ## Generally Useful Commands | ||
| - [`docker run`](https://docs.docker.com/engine/reference/run/): Run an | ||
| image (create a container and run the command in `ENTRYPOINT` or `CMD` section of **Dockerfile**). | ||
| - [`docker build`](https://docs.docker.com/engine/reference/commandline/build/): Build | ||
| an image (execute instructions in **Dockerfile** and create a runnable image). | ||
| - [`docker pull`](https://docs.docker.com/engine/reference/commandline/pull/): Pull | ||
| a newer version of an image (force update of the cached copy). | ||
| ## Sharing Files | ||
| Sharing files between the host OS and the container is done using the `--volume` parameter of the `docker run` command: | ||
| docker run --volume=/hostPath/:/containerPath/ imageName | ||
| Do not use any spaces around `:`. The details of file sharing are somewhat | ||
| [dependent on the host OS](https://docs.docker.com/storage/volumes/) you are using. | ||
| There is a very | ||
| useful [guide for Rocker image](https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine), which | ||
| describes all the sharing options in great detail. | ||
| On Linux systems, where Docker runs natively, there is really not much to think about. The only things that can bite | ||
| you are file and directory permissions. Keep in mind that files created within the running Docker container on | ||
| a mounted host volume will be created with the permissions of users of that container (not the host OS). | ||
| On Mac OS, follow the [official example](https://docs.docker.com/docker-for-mac/osxfs/). | ||
| The limitation is that your host path must be in a shared directory (e.g., `/Users/`). | ||
| On Windows, follow the [official example](https://docs.docker.com/docker-for-windows/#shared-drives). | ||
| The limitation is that you must use absolute paths with `docker run`. | ||
| --- | ||
| title: Installation and Running | ||
| permalink: /extend/component/docker-tutorial/setup/ | ||
| redirect_from: | ||
| - /extend/docker/tutorial/setup/ | ||
| --- | ||
|
|
||
| * TOC | ||
| {:toc} | ||
|
|
||
| To work with Docker, you need to have it installed. If you do not have a computer with a Docker machine, you can obtain a | ||
| cheap [hosted server](https://marketplace.digitalocean.com/apps/docker). You can also | ||
| run everything locally. To install a Docker machine on Win/Mac, | ||
| use [Docker Community Edition](https://hub.docker.com/search?type=edition&offering=community). For | ||
| other systems, see the [documentation](https://docs.docker.com/install/). | ||
|
|
||
| ## Getting Started | ||
| To test that everything is running correctly, start with an example | ||
| from the Docker [documentation](https://docs.docker.com/get-started/). | ||
| Run the following commands on the command line: | ||
|
|
||
| docker run hello-world | ||
|
|
||
|
|
||
| or | ||
|
|
||
| docker run docker.io/library/hello-world:latest | ||
|
|
||
| If this works, use any image published in any Docker | ||
| registry, e.g. [Docker Hub](https://hub.docker.com/), [Quay](https://quay.io/) or [AWS ECR](https://aws.amazon.com/ecr/). | ||
| Note that in some configurations, you may need to use `sudo` to run `docker`. If you run into problems, consult the | ||
| official troubleshooting ([Windows](https://docs.docker.com/docker-for-windows/troubleshoot/), [Mac](https://docs.docker.com/docker-for-mac/troubleshoot/)). | ||
|
|
||
| ## Generally Useful Commands | ||
| - [`docker run`](https://docs.docker.com/engine/reference/run/): Run an | ||
| image (create a container and run the command in `ENTRYPOINT` or `CMD` section of **Dockerfile**). | ||
| - [`docker build`](https://docs.docker.com/engine/reference/commandline/build/): Build | ||
| an image (execute instructions in **Dockerfile** and create a runnable image). | ||
| - [`docker pull`](https://docs.docker.com/engine/reference/commandline/pull/): Pull | ||
| a newer version of an image (force update of the cached copy). | ||
|
|
||
| ## Sharing Files | ||
| Sharing files between the host OS and the container is done using the `--volume` parameter of the `docker run` command: | ||
|
|
||
| docker run --volume=/hostPath/:/containerPath/ imageName | ||
|
|
||
| Do not use any spaces around `:`. The details of file sharing are somewhat | ||
| [dependent on the host OS](https://docs.docker.com/storage/volumes/) you are using. | ||
| There is a very | ||
| useful [guide for Rocker image](https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine), which | ||
| describes all the sharing options in great detail. | ||
|
|
||
| On Linux systems, where Docker runs natively, there is really not much to think about. The only things that can bite | ||
| you are file and directory permissions. Keep in mind that files created within the running Docker container on | ||
| a mounted host volume will be created with the permissions of users of that container (not the host OS). | ||
|
|
||
| On Mac OS, follow the [official example](https://docs.docker.com/docker-for-mac/osxfs/). | ||
| The limitation is that your host path must be in a shared directory (e.g., `/Users/`). | ||
|
|
||
| On Windows, follow the [official example](https://docs.docker.com/docker-for-windows/#shared-drives). | ||
| The limitation is that you must use absolute paths with `docker run`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Špatné line breaks, proto ten +-61.