docker_push
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docker_push [2015/10/06 10:27] – created luke7858 | docker_push [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | === Pushing Your Docker | + | ==== Docker |
| + | Sign up for a free account: | ||
| + | https:// | ||
| + | |||
| + | ------------------------------------------------------------------------------ | ||
| + | |||
| + | |||
| + | ====Registering Your Machine ==== | ||
| + | == Method 1== | ||
| + | Command: | ||
| + | <sxh bash> | ||
| + | [root@docker ~]# docker login | ||
| + | Username: username | ||
| + | Password: | ||
| + | Email: [email protected] | ||
| + | WARNING: login credentials saved in / | ||
| + | Login Succeeded | ||
| + | </ | ||
| \\ | \\ | ||
| + | ==Method 2 == | ||
| <sxh bash> | <sxh bash> | ||
| docker login --username=username --password=1234567 [email protected] | docker login --username=username --password=1234567 [email protected] | ||
| </ | </ | ||
| + | |||
| + | ------------------------------------------------------------------------------ | ||
| + | ==== Committing a container (PUSH) ==== | ||
| + | source: https:// | ||
| + | \\ | ||
| + | First you will need to commit a container, then you can push it to the repository | ||
| + | <sxh bash> | ||
| + | docker commit containerID luke/ | ||
| + | </ | ||
| + | |||
| + | ------------------------------------------------------------------------------ | ||
| + | === Tagging Image Before Pushing ==== | ||
| + | If you forgot to tage the container before you committed you can do it now | ||
| + | <sxh bash> | ||
| + | docker images | ||
| + | </ | ||
| + | <sxh bash> | ||
| + | docker tag ImageID luke/ | ||
| + | </ | ||
| + | ------------------------------------------------------------------------------ | ||
| + | |||
| + | ==== Pushing an Image ==== | ||
| + | <sxh bash> | ||
| + | docker push luke/test | ||
| + | </ | ||
| + | |||
docker_push.1444127265.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
