(2020/01/16) 도커 실습의 기록

정은경·2020년 1월 16일
0
Last login: Thu Jan 16 00:03:39 on ttys006
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ » docker

Usage:	docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
      --config string      Location of client config files (default "/Users/marie/.docker")
  -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker
                           context use")
  -D, --debug              Enable debug mode
  -H, --host list          Daemon socket(s) to connect to
  -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default "/Users/marie/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default "/Users/marie/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default "/Users/marie/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

Management Commands:
  builder     Manage builds
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  image       Manage images
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a Dockerfile
  commit      Create a new image from a container's changes
  cp          Copy files/folders between a container and the local filesystem
  create      Create a new container
  diff        Inspect changes to files or directories on a container's filesystem
  events      Get real time events from the server
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  logs        Fetch the logs of a container
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  ps          List containers
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  start       Start one or more stopped containers
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop one or more running containers
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  top         Display the running processes of a container
  unpause     Unpause all processes within one or more containers
  update      Update configuration of one or more containers
  version     Show the Docker version information
  wait        Block until one or more containers stop, then print their exit codes

Run 'docker COMMAND --help' for more information on a command.
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »

(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ » docker login
Authenticating with existing credentials...
Login Succeeded
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ » ls -al
total 103656
drwxr-xr-x+  78 marie  staff      2496  1 16 14:54 .
drwxr-xr-x    6 root   admin       192  9 30 05:22 ..
-r--------    1 marie  staff         8  4  1  2019 .CFUserTextEncoding
drwxr-xr-x@   3 marie  staff        96 12 26 01:40 .CrossWeb
-rw-r--r--@   1 marie  staff     24580  1 16 14:31 .DS_Store
drwx------  111 marie  staff      3552  1 16 13:59 .Trash
-rw-------    1 marie  staff     11741 12 13 13:26 .bash_history
-rw-r--r--    1 marie  staff       651 12 11 21:18 .bash_profile
drwx------   19 marie  staff       608 12  3 17:34 .bash_sessions
drwxr-xr-x    3 marie  staff        96 12 11 21:18 .conda
drwx------    5 marie  staff       160 12  4 17:10 .config
drwxr-xr-x    4 marie  staff       128  1 16 14:50 .docker
drwx------    3 marie  staff        96 12 10 22:53 .httpie
-rw-------    1 marie  staff     16354  1  9 23:58 .mysql_history
drwxr-xr-x    9 marie  staff       288 12 27 18:05 .npm
drwxr-xr-x   19 marie  staff       608  1 15 17:06 .oh-my-zsh
drwxr-xr-x    9 marie  staff       288 12 26 06:22 .pylint.d
-rw-------    1 marie  staff      3437  1 11 18:37 .python_history
-rw-r--r--    1 marie  staff        10 12  3 17:16 .shell.pre-oh-my-zsh
-rw-------    1 marie  staff       331 12 18 17:43 .sqlite_history
drwx------    3 marie  staff        96  1  2 14:55 .ssh
-rw-------    1 marie  staff         2  1 16 13:24 .tig_history
drwxr-xr-x    3 marie  staff        96  1 15 17:17 .vim
-rw-------    1 marie  staff     38151  1 16 13:23 .viminfo
-rw-r--r--    1 marie  staff      1156  1 15 23:16 .vimrc
drwxr-xr-x    3 marie  staff        96  3 28  2019 .vscode
-rw-r--r--    1 marie  staff       116 12 19 14:38 .yarnrc
-rw-r--r--    1 marie  staff     46642 12  3 17:16 .zcompdump-MarieJung의 MacBook Pro-5.7.1
dr-xr-xr-x    2 marie  staff        64  7 17  2019 .zoomus
-rw-------    1 marie  staff    207476  1 16 14:54 .zsh_history
-rw-r--r--    1 marie  staff      4036 12 11 21:19 .zshrc
drwx------@   4 marie  staff       128  3 27  2019 Applications
drwx------@  31 marie  staff       992  1 16 13:22 Desktop
drwxr-xr-x    9 marie  staff       288 12 16 02:28 DjangoGirls
drwx------@   7 marie  staff       224 12 24 17:02 Documents
drwx------@  77 marie  staff      2464  1 16 14:30 Downloads
drwxr-xr-x    3 marie  staff        96 12  4 16:54 GitHubBlog
drwxr-xr-x    2 marie  staff        64  1  9 21:21 JEK_2020
drwxr-xr-x    3 marie  staff        96 12 19 14:38 JEK_react_20191219
drwx------@  72 marie  staff      2304 12 15 16:48 Library
-rwxr-xr-x    1 marie  staff  51753385 10 26 04:36 Miniconda3-latest-MacOSX-x86_64.sh
drwx------+   4 marie  staff       128 10 11 23:22 Movies
drwx------+   5 marie  staff       160 10 11 23:22 Music
drwx------+   6 marie  staff       192 10 11 19:11 Pictures
drwxr-xr-x    3 marie  staff        96 12 16 20:02 Postman
drwxr-xr-x    2 marie  staff        64 12  4 16:48 Project
drwxr-xr-x+   4 marie  staff       128  3 27  2019 Public
drwxr-xr-x    4 marie  staff       128 12 18 11:57 WeCode_CrawlingSession_20191218
drwxr-xr-x    3 marie  staff        96 12 11 21:28 WeCode_Django
drwxr-xr-x    3 marie  staff        96 12 11 14:51 WeCode_Git_Practice_20191211
drwxr-xr-x    3 marie  staff        96 12 17 15:19 WeCode_JH_Django
drwxr-xr-x    3 marie  staff        96  1 10 00:32 WeCode_Project_01
drwxr-xr-x    4 marie  staff       128 12 17 16:06 WeCode_Projects
drwxr-xr-x    3 marie  staff        96 12  9 02:21 WeCode_Reple
drwxr-xr-x    4 marie  staff       128  1 10 04:24 WeHome_TEST
drwxr-xr-x   14 marie  staff       448  1 16 13:22 casetify
drwxr-xr-x    4 marie  staff       128  1  8 20:25 django_model_practice_20200107
drwxr-xr-x    4 marie  staff       128 12 18 17:43 django_test_01_20191218
drwxr-xr-x    4 marie  staff       128 12 30 13:35 hahah_wehome_Backup
drwxr-xr-x    3 marie  staff        96  1 11 21:43 jek
drwxr-xr-x    6 marie  staff       192  1 15 21:59 jek_crawling
drwxr-xr-x   15 marie  staff       480 12 20 15:40 miniconda3
drwxr-xr-x    6 marie  staff       192 12 24 15:15 models_train_20191224
-rw-r--r--@   1 marie  staff       284 12 27 16:02 my_settings 복사본.py
-rw-r--r--@   1 marie  staff       218  1  7 20:13 my_settings.py
drwxr-xr-x    7 marie  staff       224 12 24 03:53 mynewdjango_20191223_장고연습
drwxr-xr-x    6 marie  staff       192 12 20 16:30 myproject
FROM python:3
drwxr-xr-x   28 marie  staff       896 12 27 18:03 node_modules
-rw-r--r--    1 marie  staff      8160 12 27 18:03 package-lock.json
drwxr-xr-x    3 marie  staff        96  1  6 15:18 rebase_test_20200106
-rw-r--r--    1 marie  staff     96253  1  2 20:56 rlt.txt
-rw-r--r--    1 marie  staff     97845  1  2 20:47 test.py
FROM python:3
-rw-r--r--    1 marie  staff       312  1  2 20:53 test2.py
drwxr-xr-x   12 marie  staff       384 12 18 20:18 todays_jib_01_20191218
drwxr-xr-x    5 marie  staff       160 12 20 01:41 todayshouse
FROM python:3
drwxr-xr-x   15 marie  staff       480  1 15 18:20 weHome_backend
drwxr-xr-x    4 marie  staff       128  1  1 21:26 weHome_backend_ver2
asgiref==3.2.3
drwxr-xr-x    3 marie  staff        96 12 27 18:09 wehome_data
(base) marie@MarieJungui-MacBookPro:~ »
asgiref==3.2.3
(base) marie@MarieJungui-MacBookPro:~ »
(base) marie@MarieJungui-MacBookPro:~ » cd casetify
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView○) » ls -al
total 48
drwxr-xr-x  14 marie  staff   448  1 16 13:22 .
drwxr-xr-x+ 78 marie  staff  2496  1 16 14:54 ..
-rw-r--r--@  1 marie  staff  6148  1 16 02:36 .DS_Store
drwxr-xr-x  14 marie  staff   448  1 16 14:54 .git
FROM python:3
-rw-r--r--   1 marie  staff  4008  1  6 21:46 .gitignore
drwxr-xr-x   3 marie  staff    96  1 13 17:36 __pycache__
drwxr-xr-x  11 marie  staff   352  1 16 13:50 artwork
drwxr-xr-x   8 marie  staff   256  1 15 20:04 casetify_backend
-rwxr-xr-x   1 marie  staff   636  1  6 21:53 manage.py
-rw-r--r--   1 marie  staff   287  1 13 17:36 my_settings.py
drwxr-xr-x  11 marie  staff   352  1 15 23:22 order
-rw-r--r--   1 marie  staff   254  1  6 21:50 requirement.txt
drwxr-xr-x   3 marie  staff    96  1 16 13:22 test
drwxr-xr-x  12 marie  staff   384  1 15 20:04 user
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView○) »
FROM python:3
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView○) »
FROM python:3
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView○) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView○) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView○) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView○) » vim Dockerfile
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vi requirement.txt
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vi requirement.txt
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vi ./my_settings.py

(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vi requirement.txt
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vi requirement.txt
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » conda activate wehomoe_conda
Could not find conda environment: wehomoe_conda
You can list all discoverable environments with `conda info --envs`.

(base) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » conda activate wehome_conda                          1(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker -a
unknown shorthand flag: 'a' in -a
See 'docker --help'.

Usage:	docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
      --config string      Location of client config files (default "/Users/marie/.docker")
  -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default
                           context set with "docker context use")
  -D, --debug              Enable debug mode
  -H, --host list          Daemon socket(s) to connect to
  -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default "/Users/marie/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default "/Users/marie/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default "/Users/marie/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

Management Commands:
  builder     Manage builds
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  image       Manage images
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a Dockerfile
  commit      Create a new image from a container's changes
  cp          Copy files/folders between a container and the local filesystem
  create      Create a new container
  diff        Inspect changes to files or directories on a container's filesystem
  events      Get real time events from the server
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  logs        Fetch the logs of a container
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  ps          List containers
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  start       Start one or more stopped containers
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop one or more running containers
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  top         Display the running processes of a container
  unpause     Unpause all processes within one or more containers
  update      Update configuration of one or more containers
  version     Show the Docker version information
  wait        Block until one or more containers stop, then print their exit codes

Run 'docker COMMAND --help' for more information on a command.

(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker ps -a                               125 ↵
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
FROM python:3
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker images -a
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker build -t muchogusto/casetify_backend:0.1.0 .
Sending build context to Docker daemon  491.5kB
Step 1/8 : FROM python:3
3: Pulling from library/python
8f0fdd3eaac0: Pull complete
d918eaefd9de: Pull complete
43bf3e3107f5: Pull complete
27622921edb2: Pull complete
dcfa0aa1ae2c: Pull complete
61cf1e8f9385: Pull complete
6cb6c5f51ace: Pull complete
6c164355f57f: Pull complete
FROM python:3
11f88e8d4be6: Pull complete
Digest: sha256:e5a6b05bf9f991ac2a07007a60a132a98a67db67ff84b0687fceb875815ed566
Status: Downloaded newer image for python:3
 ---> 1f88553e8143
Step 2/8 : WORKDIR /usr/src/app
 ---> Running in a959f89f48f2
Removing intermediate container a959f89f48f2
 ---> cc1a6e565414
Step 3/8 : COPY requirements.txt ./
COPY failed: stat /var/lib/docker/tmp/docker-builder736053429/requirements.txt: no such file or directory
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »                                                                 1(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile                                                  1(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker build -t muchogusto/casetify_backend:0.1.0 .
Sending build context to Docker daemon  491.5kB
Step 1/8 : FROM python:3
FROM python:3
 ---> 1f88553e8143
Step 2/8 : WORKDIR /usr/src/app
 ---> Using cache
 ---> cc1a6e565414
Step 3/8 : COPY requirement.txt ./
 ---> 43293a21f060
Step 4/8 : RUN apt-get install -y libmysqlclient-dev
 ---> Running in f622f0b68c07
Reading package lists...
Building dependency tree...
Reading state information...
Package libmysqlclient-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libmariadb-dev-compat libmariadb-dev

E: Package 'libmysqlclient-dev' has no installation candidate
The command '/bin/sh -c apt-get install -y libmysqlclient-dev' returned a non-zero code: 100
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile                                                100(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker build -t muchogusto/casetify_backend:0.1.0 .
Sending build context to Docker daemon  491.5kB
Step 1/8 : FROM python:3
 ---> 1f88553e8143
FROM python:3
Step 2/8 : WORKDIR /usr/src/app
FROM python:3
 ---> Using cache
 ---> cc1a6e565414
Step 3/8 : COPY requirement.txt ./
 ---> Using cache
 ---> 43293a21f060
Step 4/8 : RUN apt-update install -y libmysqlclient-dev
 ---> Running in ba084a982776
/bin/sh: 1: apt-update: not found
The command '/bin/sh -c apt-update install -y libmysqlclient-dev' returned a non-zero code: 127
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »                                                               127(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile                                                127(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker build -t muchogusto/casetify_backend:0.1.0 .
Sending build context to Docker daemon  491.5kB
Step 1/8 : FROM python:3
 ---> 1f88553e8143
Step 2/8 : WORKDIR /usr/src/app
 ---> Using cache
 ---> cc1a6e565414
Step 3/8 : COPY requirement.txt ./
 ---> Using cache
 ---> 43293a21f060
Step 4/8 : RUN apt-get install -y libmysqlclient-dev
 ---> Running in 19a10fd99437
Reading package lists...
Building dependency tree...
Reading state information...
Package libmysqlclient-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libmariadb-dev-compat libmariadb-dev

E: Package 'libmysqlclient-dev' has no installation candidate
The command '/bin/sh -c apt-get install -y libmysqlclient-dev' returned a non-zero code: 100
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile                                                100(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vim Dockerfile
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker build -t muchogusto/casetify_backend:0.1.0 .
Sending build context to Docker daemon  491.5kB
Step 1/7 : FROM python:3
 ---> 1f88553e8143
Step 2/7 : WORKDIR /usr/src/app
 ---> Using cache
 ---> cc1a6e565414
Step 3/7 : COPY requirement.txt ./
 ---> Using cache
 ---> 43293a21f060
Step 4/7 : RUN pip install -r requirement.txt
 ---> Running in 02cfd2c0ffa3
Collecting asgiref==3.2.3
  Downloading https://files.pythonhosted.org/packages/a5/cb/5a235b605a9753ebcb2730c75e610fb51c8cab3f01230080a8229fa36adb/asgiref-3.2.3-py2.py3-none-any.whl
Collecting bcrypt==3.1.7
  Downloading https://files.pythonhosted.org/packages/8b/1d/82826443777dd4a624e38a08957b975e75df859b381ae302cfd7a30783ed/bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56kB)
Collecting certifi==2019.11.28
  Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
Collecting cffi==1.13.2
  Downloading https://files.pythonhosted.org/packages/05/7d/723ceca757d8016850d1110df44b91121695f22f782f876b483ecb3928a9/cffi-1.13.2-cp38-cp38-manylinux1_x86_64.whl (439kB)
Collecting Django==3.0.1
  Downloading https://files.pythonhosted.org/packages/6a/23/08f7fd7afdd24184a400fcaebf921bd09b5b5235cbd62ffa02308a7d35d6/Django-3.0.1-py3-none-any.whl (7.4MB)
Collecting django-cors-headers==3.2.0
  Downloading https://files.pythonhosted.org/packages/21/93/b1efe344f5b7e60ea2aa4e54f76d8b50c93d7db73d69dd95e9e97a696c96/django_cors_headers-3.2.0-py3-none-any.whl
Collecting gunicorn==20.0.0
  Downloading https://files.pythonhosted.org/packages/60/0d/3dbda0324f5bf007f3274e5ea09f0f3bcbf0ca01a75b80ff4f1ff9f8ecfd/gunicorn-20.0.0-py2.py3-none-any.whl (77kB)
Collecting mysql-connector-python==8.0.18
  Downloading https://files.pythonhosted.org/packages/bc/5c/abd95d9d978982e669d5caa7b40d86efce01e9729800043e40581b6e55f5/mysql_connector_python-8.0.18-py2.py3-none-any.whl (346kB)
Collecting mysqlclient==1.4.6
  Downloading https://files.pythonhosted.org/packages/d0/97/7326248ac8d5049968bf4ec708a5d3d4806e412a42e74160d7f266a3e03a/mysqlclient-1.4.6.tar.gz (85kB)
Collecting Pillow==6.2.1
  Downloading https://files.pythonhosted.org/packages/a4/ad/a7fc21b083c3acf873d8d7e2b8605e0b3c8b2a840aff398fdb5f35aaaef7/Pillow-6.2.1-cp38-cp38-manylinux1_x86_64.whl (2.1MB)
Collecting protobuf==3.11.2
  Downloading https://files.pythonhosted.org/packages/78/a1/69585ea99ca5c6706fc5143a914b08431f9aaa03994634664612d6cf7c29/protobuf-3.11.2-cp38-cp38-manylinux1_x86_64.whl (1.3MB)
Collecting pycparser==2.19
  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
Collecting PyJWT==1.7.1
  Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
Collecting pytz==2019.3
  Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
Collecting six==1.13.0
  Downloading https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
Collecting sqlparse==0.3.0
  Downloading https://files.pythonhosted.org/packages/ef/53/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7/sqlparse-0.3.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.8/site-packages (from gunicorn==20.0.0->-r requirement.txt (line 7)) (44.0.0)
Building wheels for collected packages: mysqlclient, pycparser
  Building wheel for mysqlclient (setup.py): started
  Building wheel for mysqlclient (setup.py): finished with status 'done'
  Created wheel for mysqlclient: filename=mysqlclient-1.4.6-cp38-cp38-linux_x86_64.whl size=116058 sha256=66149815cbff070a12279cdf90d2a0b8d7a7004a187cd6c98c2b1d94e413559e
  Stored in directory: /root/.cache/pip/wheels/37/3d/24/5327fa50817a65ed0ee4dc8809e5c39962b0dd5e078ebf4dc1
  Building wheel for pycparser (setup.py): started
  Building wheel for pycparser (setup.py): finished with status 'done'
  Created wheel for pycparser: filename=pycparser-2.19-py2.py3-none-any.whl size=111029 sha256=b19864e7cb335c23000f8a281a1bed308d2d22d1eee26630e8e83b5d4c886087
  Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Successfully built mysqlclient pycparser
Installing collected packages: asgiref, pycparser, cffi, six, bcrypt, certifi, pytz, sqlparse, Django, django-cors-headers, gunicorn, protobuf, mysql-connector-python, mysqlclient, Pillow, PyJWT
Successfully installed Django-3.0.1 Pillow-6.2.1 PyJWT-1.7.1 asgiref-3.2.3 bcrypt-3.1.7 certifi-2019.11.28 cffi-1.13.2 django-cors-headers-3.2.0 gunicorn-20.0.0 mysql-connector-python-8.0.18 mysqlclient-1.4.6 protobuf-3.11.2 pycparser-2.19 pytz-2019.3 six-1.13.0 sqlparse-0.3.0
Removing intermediate container 02cfd2c0ffa3
 ---> 311b4ceb13f9
Step 5/7 : COPY . .
 ---> 3dc3365a00f4
Step 6/7 : EXPOSE 8000
 ---> Running in df92a1247afa
Removing intermediate container df92a1247afa
 ---> f9e94d8cd0f4
Step 7/7 : CMD ["gunicorn", "--bind", "0.0.0.0:8000", "casetify_backend.wsgi:application"]
 ---> Running in 82a8d154657c
Removing intermediate container 82a8d154657c
 ---> b630a46cb38e
Successfully built b630a46cb38e
Successfully tagged muchogusto/casetify_backend:0.1.0
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker run --name casetifydockerjek -d - p 8000:8000 muchogusto/casetify_backend:0.1.0
docker: invalid reference format.
See 'docker run --help'.
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker run --name casetifydockerjek -d -p 8000:8000 muchogusto/casetify_backend:0.1.0
52dba9eb2e2b5a49596babcc2c1cefc97ab34bdf56efbcadfe03bbf66d7d6779
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker ps
CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                    NAMES
52dba9eb2e2b        muchogusto/casetify_backend:0.1.0   "gunicorn --bind 0.0…"   16 seconds ago      Up 15 seconds       0.0.0.0:8000->8000/tcp   casetifydockerjek
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » docker ps
CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                    NAMES
52dba9eb2e2b        muchogusto/casetify_backend:0.1.0   "gunicorn --bind 0.0…"   25 seconds ago      Up 23 seconds       0.0.0.0:8000->8000/tcp   casetifydockerjek
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »

(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »

(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »

(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » vi requirement.txt
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) » cat requirement.txt
asgiref==3.2.3
bcrypt==3.1.7
certifi==2019.11.28
cffi==1.13.2
Django==3.0.1
django-cors-headers==3.2.0
gunicorn==20.0.0
mysql-connector-python==8.0.18
mysqlclient==1.4.6
Pillow==6.2.1
protobuf==3.11.2
pycparser==2.19
PyJWT==1.7.1
pytz==2019.3
six==1.13.0
sqlparse==0.3.0
(wehome_conda) marie@MarieJungui-MacBookPro:~/casetify(Feature/ArtworkListView⚡) »
profile
#의식의흐름 #순간순간 #생각의스냅샷

0개의 댓글