Y
Size: a a a
Y
GG
Y
C
FROM nginx:alpineaws:
COPY project /usr/share/nginx/html
{в докере сделал docker build -t korzh17/portfolio
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "korzh17/portfolio",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "80"
}
],
"Logging": "/var/log/nginx"
}
Y
C
Y
docker run -d -p 8085:80 portfolio:v1открыл - работает.
docker build -t korzh17/portfolio
C
FROM debian:latest
RUN apt-get update && apt-get install -y cowsay fortune
COPY entrypoint.sh /
ENTRYPOINT ["/entrtypoint.sh"]
#!/bin/bash
if [ $# -eq 0 ]; then
/usr/games/fortune | /usr/games/cowsay
else
/usr/games/cowsay "$@"
fi
Y
docker run -d -p 8085:80 portfolio:v1открыл - работает.
docker build -t korzh17/portfolio
docker push korzh17/portfolio
C
docker run -d -p 8085:80 portfolio:v1открыл - работает.
docker build -t korzh17/portfolio
Y
Y
C
docker push korzh17/portfolio
F=
C
Y
C
C
Y
C
2020-02-04 22:24:23 UTC+0100 ERROR During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
2020-02-04 22:24:23 UTC+0100 ERROR Failed to deploy application.
2020-02-04 22:24:23 UTC+0100 ERROR Unsuccessful command execution on instance id(s) 'i-0c1987a1e72b01a45'. Aborting the operation.
2020-02-04 22:24:23 UTC+0100 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2020-02-04 22:24:23 UTC+0100 ERROR [Instance: i-0c1987a1e72b01a45] Command failed on instance. Return code: 1 Output: (TRUNCATED)...ory does not exist or may require 'docker login' Failed to pull Docker image korzh17/catnip:latest: Error response from daemon: pull access denied for korzh17/catnip, repository does not exist or may require 'docker login'. Check snapshot logs for details. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03build.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.